diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..94423f3 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,54 @@ +on: [workflow_dispatch] +jobs: + test-from-project: + runs-on: codeberg-tiny + steps: + - name: 'Checkout' + uses: 'https://code.forgejo.org/actions/checkout@v3' + with: { fetch-depth: 0 } + - name: 'Create build.zig.zon' + run: | + cat >build.zig.zon < zig-x86_64-linux + - '0.15.0' + - '0.15.1' # armv7a -> arm (though testing on ARM is TODO!) + - '0.15.2' # some x.x.2 + steps: + - name: 'Checkout' + uses: 'https://code.forgejo.org/actions/checkout@v3' + with: { fetch-depth: 0 } + - name: 'Setup Zig' + uses: './' + with: { version: '${{ matrix.zig_version }}' } + - name: 'Test `zig init`' + run: | + mkdir init + cd init + zig init + zig build test