update readme to v2
This commit is contained in:
parent
9566bb3e87
commit
7784e301e8
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user