chore: add ci config
This commit is contained in:
parent
af8ec4db5b
commit
c96dc55a05
|
@ -0,0 +1,29 @@
|
||||||
|
- name: Setup Zig
|
||||||
|
uses: goto-bus-stop/setup-zig@v1.3.0
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: goto-bus-stop/setup-zig@v1
|
||||||
|
- 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
|
||||||
|
- uses: goto-bus-stop/setup-zig@v1
|
||||||
|
- run: zig fmt src/**/*.zig
|
||||||
|
|
Loading…
Reference in New Issue