[update] CI: fix it for linux and add new workflows for windows #6
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: ci | |
on: | |
pull_request: | |
branches: | |
- trunk | |
jobs: | |
examples: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- uses: tiawl/[email protected] | |
- uses: actions/checkout@v4 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: ${{ env.zig_version }} | |
- shell: bash | |
run: | | |
git clone https://github.com/jqlang/jq test | |
env -C ./test git submodule update --init | |
env -C ./test autoreconf -i | |
env -C ./test ./configure --with-oniguruma=builtin | |
cat test/Makefile | |
exit 1 | |
- name: Test building examples | |
shell: bash | |
run: | |
zig build --build-file "${GITHUB_WORKSPACE}/examples/build.zig" | |
- name: Run examples | |
shell: bash | |
run: | |
env -C ./examples ./zig-out/bin/examples |