8 Commits

Author SHA1 Message Date
b7e141227e ci: disable autocrlf on windows 2022-10-31 07:39:54 -03:00
3a47c24975 ci: add macOS as a build target 2022-10-31 07:36:47 -03:00
0d13934f56 chore: integrate vcpkg before installing sdl2 2022-10-31 07:30:43 -03:00
990f44d6c1 chore: install sdl2 on windows-latest using vcpkg 2022-10-31 07:14:44 -03:00
91f9aa1b58 chore: add windows-latest to github ci
TODO: Need to figure out how to provide SDL2
2022-10-31 07:06:18 -03:00
e916ebf621 chore: update ci 2022-10-31 07:01:18 -03:00
61f584265b chore: get rid of invalid YAML 2022-10-31 06:55:55 -03:00
157e0c7986 chore: add ci config 2022-10-31 06:52:41 -03:00

43
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
on: [push, workflow_dispatch]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
- name: prepare-linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev
- name: prepare-windows
if: runner.os == 'Windows'
run: |
vcpkg integrate install
vcpkg install sdl2:x64-windows
git config --global core.autocrlf false
- name: prepare-macos
if: runner.os == 'macOS'
run: |
brew install sdl2
- uses: actions/checkout@v2
with:
submodules: true
- name: build
run: zig build -Drelease-safe
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
- run: zig fmt src/**/*.zig