mysimulation/.github/workflows/build.yml
Tony Bark c8e8d41fb8 Zig port of FileHandler
- io directly with iff.zig and filehandler.zig
- Added OpenGL ubuntu build step and made sure lint doesn't start until build is done
- Rewrote motivation section in README
2024-04-30 23:00:03 -04:00

45 lines
No EOL
1 KiB
YAML

name: Build
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
timeout-minutes: 15
continue-on-error: true
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- name: Build
run: zig build
- name: Test
run: zig build test
ubuntu-build:
timeout-minutes: 15
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- name: Install OpenGL
run: apt-get libglu1-mesa-dev freeglut3-dev mesa-common-dev
- name: Build
run: zig build
- name: Test
run: zig build test
lint:
needs: build
timeout-minutes: 15
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- run: zig fmt --check .