Run the CI with zig 0.13 #678
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [main, pre-release, ink/zig-upgrade] | |
pull_request: | |
branches: [main, pre-release, ink/zig-upgrade] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup-zig | |
uses: goto-bus-stop/setup-zig@v1 | |
with: | |
version: 0.12.0 | |
- name: lint | |
run: | | |
zig fmt --check src/ | |
zig fmt --check build.zig | |
build-unix: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: setup-zig | |
uses: goto-bus-stop/setup-zig@v1 | |
with: | |
version: 0.13.0 | |
- name: build | |
run: zig build | |
- name: test | |
run: zig build test | |
# build-windows: | |
# runs-on: windows-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# steps: | |
# - name: setup-git | |
# run: | | |
# git config --global core.autocrlf false | |
# git config --global core.eol lf | |
# - name: checkout | |
# uses: actions/checkout@v2 | |
# with: | |
# submodules: recursive | |
# - name: setup-zig | |
# uses: goto-bus-stop/setup-zig@v1 | |
# with: | |
# version: master | |
# - name: build | |
# run: | | |
# zig build -Dtarget=x86_64-windows --prefix tmp | |
# zig build | |
# - name: test | |
# run: zig build test |