diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c5dcdca --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: build +on: + push: + pull_request: + branches: [ main ] + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.13.0 + - name: Build all examples + run: zig build diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 08c29d8..3f04267 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1,14 +1,14 @@ -name: unit-test +name: unit-test on: push: pull_request: branches: [ main ] jobs: - build: + test: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -16,5 +16,5 @@ jobs: - uses: goto-bus-stop/setup-zig@v2 with: version: 0.13.0 - - name: Unit Test + - name: Build all examples run: zig build test --summary all