update readme to v2

pull/42/head
Renée Kooi 2022-11-07 13:38:56 +01:00
parent 9566bb3e87
commit 7784e301e8
1 changed files with 4 additions and 4 deletions

View File

@ -17,19 +17,19 @@ jobs:
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1 - uses: goto-bus-stop/setup-zig@v2
- run: zig build test - run: zig build test
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1 - uses: goto-bus-stop/setup-zig@v2
- run: zig fmt --check src/*.zig - run: zig fmt --check src/*.zig
``` ```
Optionally set a Zig version: Optionally set a Zig version:
```yaml ```yaml
- uses: goto-bus-stop/setup-zig@v1 - uses: goto-bus-stop/setup-zig@v2
with: with:
version: 0.7.0 version: 0.7.0
``` ```
@ -38,7 +38,7 @@ The default is to use the nightly `master` builds.
Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax: Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:
```yaml ```yaml
- uses: goto-bus-stop/setup-zig@v1 - uses: goto-bus-stop/setup-zig@v2
with: with:
version: 0.6.0+4b48fccad version: 0.6.0+4b48fccad
``` ```