2022-10-31 09:42:43 +00:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-10-31 10:06:18 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2022-10-31 09:42:43 +00:00
|
|
|
runs-on: ${{matrix.os}}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-31 10:01:18 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-10-31 09:42:43 +00:00
|
|
|
- uses: goto-bus-stop/setup-zig@v1
|
2022-10-31 10:01:18 +00:00
|
|
|
with:
|
|
|
|
version: master
|
2022-10-31 09:42:43 +00:00
|
|
|
- name: prepare-linux
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libsdl2-dev
|
|
|
|
- name: build
|
|
|
|
run: zig build -Drelease-safe
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-31 10:01:18 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-10-31 09:42:43 +00:00
|
|
|
- uses: goto-bus-stop/setup-zig@v1
|
2022-10-31 10:01:18 +00:00
|
|
|
with:
|
|
|
|
version: master
|
2022-10-31 09:42:43 +00:00
|
|
|
- run: zig fmt src/**/*.zig
|
|
|
|
|