Skip to content

Commit

Permalink
Attempt to add a web GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jdarpinian committed May 3, 2024
1 parent aa8f681 commit 3c29e0a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,25 @@ jobs:
with:
name: macOS
path: build/*.zip
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: emscripten-core/emsdk
path: emsdk
- name: Install Dependencies
run: |
cd emsdk
./emsdk install 3.1.58
./emsdk activate 3.1.58
- name: Compile
env:
ARCHIVE: 1
run: |
source emsdk/emsdk_env.sh
emmake make release
- uses: actions/upload-artifact@v4
with:
name: Web
path: build/*.zip
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,12 @@ ifneq ($(PLATFORM),darwin)
@rm -f $@
@(cd $(B) && zip -r9 ../../$@ $(NAKED_TARGETS))
endif
endif
ifeq ($(PLATFORM),emscripten)
ifdef ARCHIVE
@(cp code/web/ioquake3.html $(B)/)
@(cd $(B) && zip -r9 ../../$@ ioquake3.wasm32.wasm ioquake3.html)
endif
endif
@:

Expand Down

0 comments on commit 3c29e0a

Please sign in to comment.