GitHub Actions not working

I’m trying to figure out why a GitHub Actions is not fetching and compiling Zig code. All the rest work. Any help appreciated. Thanks.

      - uses: mlugg/setup-zig@v1
        with: { version: "0.15.2" }

      - name: Build nm_zig_wasi
        continue-on-error: true
        run: zig build-exe nm_zig.zig -O ReleaseSmall -target wasm32-wasi --name nm_zig_wasi

I’m expecting the Zig WASM/WASI build to be displayed here Native Messaging WASI host benchmark.

worked version

It uses v2 of zig setup

1 Like

I built that using 0.15.2. Will 0.16.0 work with that same code?

i am not sure
e.g.

    const stdin = std.fs.File.stdin();

see 0.16.0 Release notes

simplest check (without installation of new version)

      - uses: mlugg/setup-zig@v2
        with:
          version: 0.16.0 <====
    

use Juicy Main instead of plain main - you will get gpa and Threaded Io

see related post

1 Like