Port minimal_glfw_gl to Emscripten #918
Workflow file for this run
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
# Cancels pending runs when a PR gets updated. | |
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | |
cancel-in-progress: true | |
jobs: | |
lint-and-build-and-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Read .zig-version | |
id: zigversion | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./.zigversion | |
- name: Install Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: ${{ steps.zigversion.outputs.content }} | |
- name: Check format | |
continue-on-error: true | |
run: zig fmt --check . | |
- name: Build all native | |
run: zig build -Dexperiments | |
- name: Cross compile Linux->Windows | |
if: runner.os == 'Linux' | |
run: zig build -Dtarget=x86_64-windows-gnu | |
- name: Build for Web | |
run: zig build -Dtarget=wasm32-emscripten | |