Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SinclaM committed Jan 1, 2024
1 parent 8e69c75 commit 9a9aeda
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ jobs:
with:
zig-version: master

- name: Install Emscripten 🔧
run: |
curl -O https://codeload.github.com/emscripten-core/emsdk/tar.gz/refs/tags/3.1.51
tar xzf 3.1.51
cd emsdk-3.1.51
./emsdk install latest
./emsdk activate latest
- name: Run tests 📊
run: zig build test

- name: Build 🏗️
run: zig build -Dtarget=wasm32-freestanding -Doptimize=ReleaseFast -Dcpu=generic+bulk_memory+atomics+mutable_globals
run: zig build --sysroot emsdk-3.1.51/upstream/emscripten -Dtarget=wasm32-emscripten -Doptimize=ReleaseFast && sed -i'' -e 's/_emscripten_return_address,/() => {},/g' www/ray-tracer-challenge.js

- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 9a9aeda

Please sign in to comment.