Skip to content

Bump Zig to 0.12.0-dev.2644+42fcca49c #94

Bump Zig to 0.12.0-dev.2644+42fcca49c

Bump Zig to 0.12.0-dev.2644+42fcca49c #94

Workflow file for this run

name: Build and Deploy to Github Pages
on:
push:
branches:
- main
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Zig πŸ”§
uses: korandoru/setup-zig@v1
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 --sysroot emsdk-3.1.51/upstream/emscripten -Dtarget=wasm32-emscripten -Dcpu=generic+bulk_memory+atomics+simd128 -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
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: www