-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR 'Added Webassembly support and fixed GLES2 (somewhat)'
Webassembly version doesn’t work online and screen flashes on GLES2 are opaque. See DarkPlacesEngine/DarkPlaces#169 --------- Signed-off-by: bones_was_here <[email protected]> Co-authored-by: James O'Neill <[email protected]> Co-authored-by: bones_was_here <[email protected]>
- Loading branch information
1 parent
5772ed2
commit 558f167
Showing
21 changed files
with
890 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
sdl-release: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: debian:latest | ||
|
@@ -26,7 +25,7 @@ jobs: | |
# make `git describe` show the correct commit hash | ||
fetch-depth: '0' | ||
|
||
- name: Compile DP | ||
- name: Compile | ||
run: | | ||
# prevent git complaining about dubious ownership of the repo | ||
chown -R root:root . | ||
|
@@ -43,3 +42,56 @@ jobs: | |
path: | | ||
darkplaces-sdl | ||
wasm-release: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: debian:latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
apt update | ||
apt install --yes build-essential python3-certifi | ||
- name: Fetch repository | ||
uses: actions/[email protected] | ||
with: | ||
# make `git describe` show the correct commit hash | ||
fetch-depth: '0' | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3' | ||
|
||
- name: Install emsdk | ||
uses: actions/[email protected] | ||
with: | ||
repository: emscripten-core/emsdk | ||
path: emsdk | ||
|
||
- name: Compile | ||
shell: bash | ||
run: | | ||
cd emsdk | ||
# Download and install the latest SDK tools. | ||
./emsdk install latest | ||
# Make the "latest" SDK "active" for the current user. (writes .emscripten file) | ||
./emsdk activate latest | ||
# Activate PATH and other environment variables in the current terminal | ||
source ./emsdk_env.sh | ||
cd .. | ||
# fail if there's any warnings | ||
#export CC="cc" | ||
make emscripten-release | ||
- name: Upload WASM artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Wasm | ||
path: | | ||
darkplaces-wasm.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.