fix: enforce type constraints on variable re-assignment #99
This file contains hidden or 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
| name: pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| WASMTIME_VERSION: v45.0.0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.16.0 | |
| - name: Run conformance tests | |
| run: | | |
| curl -sSf https://wasmtime.dev/install.sh | bash -s -- --version "$WASMTIME_VERSION" | |
| WASMTIME="$HOME/.wasmtime/bin/wasmtime" | |
| zig build -Dwasmtime="$WASMTIME" unit | |
| zig build -Dpreset=dev -Dwasmtime="$WASMTIME" test | |
| - name: Build WASM runtime | |
| run: zig build -Dpreset=dev wasi-release | |
| - name: Update playground cache version | |
| run: bash playground/deploy.sh | |
| - name: Assemble site | |
| run: | | |
| rm -rf _site | |
| mkdir -p _site | |
| cp playground/index.html _site/index.html | |
| cp playground/playground.js _site/playground.js | |
| cp playground/worker.js _site/worker.js | |
| cp playground/gengo-runtime.wasm _site/gengo-runtime.wasm | |
| cp -r playground/examples _site/examples | |
| - name: Upload Pages Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |