-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 882 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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