ci: enable debugging

This commit is contained in:
Ducko 2022-09-29 16:18:51 +01:00
parent 3314bc9c28
commit d16475714d
1 changed files with 70 additions and 70 deletions

View File

@ -40,10 +40,10 @@ jobs:
test-linux: test-linux:
name: Test Linux name: Test Linux
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -52,7 +52,7 @@ jobs:
with: with:
name: built-asar name: built-asar
path: artifact path: artifact
- name: Extract artifact - name: Extract artifact
run: | run: |
cp artifact/app.asar . cp artifact/app.asar .
@ -73,10 +73,10 @@ jobs:
test-win: test-win:
name: Test Windows name: Test Windows
needs: build needs: build
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -140,7 +140,7 @@ jobs:
with: with:
name: built-asar name: built-asar
path: artifact path: artifact
- name: Extract artifact - name: Extract artifact
run: | run: |
cp artifact/app.asar . cp artifact/app.asar .
@ -158,76 +158,76 @@ jobs:
VERSION: 'nightly' VERSION: 'nightly'
FILES: app.asar FILES: app.asar
# debug-linux: debug-linux:
# name: Debug Linux name: Debug Linux
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Retrieve artifact needs: build
# uses: actions/download-artifact@v2 runs-on: ubuntu-latest
# with:
# name: built-asar
# path: artifact
# - name: Extract artifact
# run: |
# cp artifact/app.asar .
# - name: Download Client with OpenAsar steps:
# run: | - uses: actions/checkout@v2
# wget "https://discord.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
# tar xf discord.tar.gz
# cp app.asar DiscordCanary/resources/app.asar
# - name: Run Client - name: Retrieve artifact
# run: | uses: actions/download-artifact@v2
# xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging 2>&1 with:
# timeout-minutes: 5 name: built-asar
path: artifact
# debug-win:
# name: Debug Windows
# needs: build
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup Node.js v16.x - name: Extract artifact
# uses: actions/setup-node@v2 run: |
# with: cp artifact/app.asar .
# node-version: 16.x
# - name: Retrieve artifact - name: Download Client with OpenAsar
# uses: actions/download-artifact@v2 run: |
# with: wget "https://discord.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
# name: built-asar tar xf discord.tar.gz
# path: artifact cp app.asar DiscordCanary/resources/app.asar
# - name: Extract artifact - name: Run Client
# run: | run: |
# cp artifact/app.asar . xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging 2>&1
timeout-minutes: 5
# - name: Setup Client debug-win:
# shell: bash name: Debug Windows
# run: |
# node scripts/downloadWin.js
# tar xf client.tar
# # Install OpenAsar build and setup environment needs: build
# cp -f app.asar files/resources/app.asar runs-on: windows-latest
# mkdir discord
# cp -rf files/ discord/app-1.0.0
# cd discord/app-1.0.0
# mkdir modules
# - name: Run Client steps:
# run: | - uses: actions/checkout@v2
# cd discord/app-1.0.0
# ./DiscordCanary.exe --enable-logging - name: Setup Node.js v16.x
# timeout-minutes: 5 uses: actions/setup-node@v2
# shell: bash with:
node-version: 16.x
- name: Retrieve artifact
uses: actions/download-artifact@v2
with:
name: built-asar
path: artifact
- name: Extract artifact
run: |
cp artifact/app.asar .
- name: Setup Client
shell: bash
run: |
node scripts/downloadWin.js
tar xf client.tar
# Install OpenAsar build and setup environment
cp -f app.asar files/resources/app.asar
mkdir discord
cp -rf files/ discord/app-1.0.0
cd discord/app-1.0.0
mkdir modules
- name: Run Client
run: |
cd discord/app-1.0.0
./DiscordCanary.exe --enable-logging
timeout-minutes: 5
shell: bash