diff --git a/.github/workflows/zig.yml b/.github/workflows/zig.yml new file mode 100644 index 0000000..7bfc26e --- /dev/null +++ b/.github/workflows/zig.yml @@ -0,0 +1,29 @@ +name: Zig + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v6 + - uses: mlugg/setup-zig@v2 + with: + version: 0.15.2 + - run: zig build test --summary all + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: mlugg/setup-zig@v2 + - run: zig fmt --check src/*.zig \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7c046b6..0e16c49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .zig-cache -zig-out \ No newline at end of file +zig-out +zig-pkg \ No newline at end of file