10
10
branches :
11
11
- master
12
12
repository_dispatch : # listening to rv32emu-prebuilt events
13
- types : [deploy_wasm , deploy_system_wasm]
13
+ types : [deploy_user_wasm , deploy_system_wasm]
14
14
15
15
jobs :
16
16
wasm-system-deploy :
24
24
- name : install-dependencies
25
25
run : |
26
26
sudo apt-get update -q=2
27
- sudo apt-get install -q=2 libsdl2-dev libsdl2-mixer-dev device-tree-compiler
27
+ sudo apt-get install -q=2 device-tree-compiler
28
28
- name : Verify if the JS or HTML files has been modified
29
29
id : changed-files
30
30
uses : tj-actions/changed-files@v46
@@ -58,11 +58,11 @@ jobs:
58
58
run : |
59
59
make artifact
60
60
# Hack Cloudflare 403 Forbidden on GitHub Runner for Doom artifact download
61
- # wget --header="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" \
62
- # --header="Referer: https://www.doomworld.com/" \
63
- # --header="Accept-Language: en-US,en;q=0.9" \
64
- # -O build/shareware_doom_iwad.zip \
65
- # "https://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip"
61
+ wget --header="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" \
62
+ --header="Referer: https://www.doomworld.com/" \
63
+ --header="Accept-Language: en-US,en;q=0.9" \
64
+ -O build/shareware_doom_iwad.zip \
65
+ "https://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip"
66
66
unzip -d build/ build/shareware_doom_iwad.zip
67
67
- name : build with emcc and move application files to /tmp
68
68
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
84
84
uses : actions/checkout@v4
85
85
with :
86
86
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
87
- repository : sysprog21 /rv32emu-demo
87
+ repository : ChinYikMing /rv32emu-demo
88
88
- name : Create local changes
89
89
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
90
90
github.event_name == 'workflow_dispatch' ||
@@ -111,11 +111,11 @@ jobs:
111
111
(github.event_name == 'repository_dispatch' && github.event.action == 'deploy_system_wasm') }}
112
112
uses : ad-m/github-push-action@master
113
113
with :
114
- repository : sysprog21 /rv32emu-demo
114
+ repository : ChinYikMing /rv32emu-demo
115
115
github_token : ${{ secrets.RV32EMU_DEMO_TOKEN }}
116
116
branch : main
117
117
wasm-user-deploy :
118
- needs : wasm-system-deploy # to run jobs sequentially since two jobs operate on same reposity: rv32emu-demo
118
+ needs : wasm-system-deploy # run jobs sequentially since two jobs operate on same reposity: rv32emu-demo
119
119
if : always() # ensures wasm-user-deploy runs regardless of the outcome or condition of wasm-system-deploy
120
120
runs-on : ubuntu-latest
121
121
steps :
@@ -139,7 +139,7 @@ jobs:
139
139
- name : install emcc
140
140
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
141
141
github.event_name == 'workflow_dispatch' ||
142
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
142
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
143
143
run : |
144
144
git clone https://github.com/emscripten-core/emsdk.git
145
145
cd emsdk
@@ -154,16 +154,16 @@ jobs:
154
154
run : |
155
155
make artifact
156
156
# Hack Cloudflare 403 Forbidden on GitHub Runner for Doom artifact download
157
- # wget --header="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" \
158
- # --header="Referer: https://www.doomworld.com/" \
159
- # --header="Accept-Language: en-US,en;q=0.9" \
160
- # -O build/shareware_doom_iwad.zip \
161
- # "https://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip"
157
+ wget --header="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" \
158
+ --header="Referer: https://www.doomworld.com/" \
159
+ --header="Accept-Language: en-US,en;q=0.9" \
160
+ -O build/shareware_doom_iwad.zip \
161
+ "https://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip"
162
162
unzip -d build/ build/shareware_doom_iwad.zip
163
163
- name : build with emcc and move application files to /tmp
164
164
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
165
165
github.event_name == 'workflow_dispatch' ||
166
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
166
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
167
167
run : |
168
168
make CC=emcc ENABLE_SDL=1
169
169
mkdir /tmp/rv32emu-demo
@@ -177,15 +177,15 @@ jobs:
177
177
- name : Check out the rv32emu-demo repo
178
178
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
179
179
github.event_name == 'workflow_dispatch' ||
180
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
180
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
181
181
uses : actions/checkout@v4
182
182
with :
183
183
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
184
- repository : sysprog21 /rv32emu-demo
184
+ repository : ChinYikMing /rv32emu-demo
185
185
- name : Create local changes
186
186
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
187
187
github.event_name == 'workflow_dispatch' ||
188
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
188
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
189
189
run : |
190
190
mv /tmp/rv32emu-demo/index.html .
191
191
mv /tmp/rv32emu-demo/coi-serviceworker.min.js .
@@ -196,7 +196,7 @@ jobs:
196
196
- name : Commit files
197
197
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
198
198
github.event_name == 'workflow_dispatch' ||
199
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
199
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
200
200
run : |
201
201
git config --local user.email "github-actions[bot]@users.noreply.github.com"
202
202
git config --local user.name "github-actions[bot]"
@@ -205,9 +205,9 @@ jobs:
205
205
- name : Push changes
206
206
if : ${{ steps.changed-files.outputs.any_modified == 'true' ||
207
207
github.event_name == 'workflow_dispatch' ||
208
- (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_wasm ') }}
208
+ (github.event_name == 'repository_dispatch' && github.event.action == 'deploy_user_wasm ') }}
209
209
uses : ad-m/github-push-action@master
210
210
with :
211
- repository : sysprog21 /rv32emu-demo
211
+ repository : ChinYikMing /rv32emu-demo
212
212
github_token : ${{ secrets.RV32EMU_DEMO_TOKEN }}
213
213
branch : main
0 commit comments