minor change: removal of animation doesn't need to return error-union #45
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
name: Native Build (linux) | |
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: | |
build-linux: | |
runs-on: ubuntu-latest | |
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: Install sdl2 | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev | |
- name: SDL version | |
run: sdl2-config --version | |
- name: Check format | |
continue-on-error: true | |
run: zig fmt --check . | |
- name: Build and run tests | |
run: zig build test | |
- name: Build examples | |
run: zig build -Dskip=particle_life,intersection_2d examples |