File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,35 @@ jobs:
5858 uses : rlalik/setup-cpp-compiler@master
5959 with :
6060 compiler : ${{ matrix.compiler }}
61+ - name : Setup emsdk
62+ uses : mymindstorm/setup-emsdk@v14
63+ with :
64+ version : 3.1.51
65+ actions-cache-folder : ' emsdk-cache'
6166 - name : fetch artifact first to reduce HTTP requests
6267 env :
6368 CC : ${{ steps.install_cc.outputs.cc }}
6469 run : |
6570 make artifact
6671 make ENABLE_SYSTEM=1 artifact
6772 make ENABLE_ARCH_TEST=1 artifact
73+ # Hack Cloudflare 403 Forbidden on GitHub Runner for Doom artifact download
74+ wget --header="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" \
75+ --header="Referer: https://www.doomworld.com/" \
76+ --header="Accept-Language: en-US,en;q=0.9" \
77+ -O build/shareware_doom_iwad.zip \
78+ "https://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip"
79+ unzip -d build/ build/shareware_doom_iwad.zip
80+ if : ${{ always() }}
81+ - name : default build using emcc
82+ run : |
83+ make CC=emcc -j$(nproc)
84+ if : ${{ always() }}
85+ - name : default build for system emulation using emcc
86+ run : |
87+ make distclean
88+ make CC=emcc ENABLE_SYSTEM=1 -j$(nproc)
89+ make distclean ENABLE_SYSTEM=1
6890 if : ${{ always() }}
6991 - name : default build with -g
7092 env :
You can’t perform that action at this time.
0 commit comments