From 157e0c7986cac7f4832229c1672df5fc68f26dcc Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 31 Oct 2022 06:42:43 -0300 Subject: [PATCH] chore: add ci config --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7728a66 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 + \ No newline at end of file