From a45b642579d0dda864758da2b926ea3934ffbc0a Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Fri, 28 Nov 2025 12:20:17 +0000 Subject: [PATCH] forgejo: add basic workflow to test setup-zig At the moment, the logs for a run need to be checked manually (possibly with a re-run so that the cache is actually populated) to verify caching is working correctly. --- .forgejo/workflows/test.yml | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .forgejo/workflows/test.yml 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