summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Ou <o@owenou.com>2023-06-18 10:50:39 -0700
committerOwen Ou <o@owenou.com>2023-07-01 11:23:31 -0700
commitfc505694a74d0045c3e1046b12c1b3588c206db4 (patch)
treef9be15571088398ba5f054fee26e861df052c7e5
parent493ca3e252a9e33b2c110ad50906bc8d9fc20914 (diff)
Locate bison for Windows build
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f6be4411..2acbad66 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -145,9 +145,11 @@ jobs:
with:
update: true
install: >-
- base-devel git clang autoconf automake libtool
+ base-devel git clang autoconf automake libtool bison
- name: Build
shell: msys2 {0}
+ env:
+ CC: clang -arch ${{ matrix.arch }}
run: |
autoreconf -fi
./configure --disable-dependency-tracking \
@@ -157,17 +159,22 @@ jobs:
--with-oniguruma=builtin \
--disable-shared \
--enable-static \
- --enable-all-static
+ --enable-all-static \
+ YACC="$(which bison) -y"
make
make dist
cp jq.exe jq-windows-${{ matrix.suffix }}.exe
- name: Test
shell: msys2 {0}
run: |
- make SUBDIRS= "TESTS=tests/mantest tests/jqtest tests/onigtest tests/base64test" check
+ make -j3 SUBDIRS= 'TESTS=tests/mantest tests/jqtest tests/onigtest tests/base64test' check
+ make SUBDIRS= TESTS=tests/optionaltest check || true
+ make SUBDIRS= TRACE_TESTS=1 TESTS=tests/shtest check || true
- name: Upload Test Logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
+ env:
+ CC: clang -arch ${{ matrix.arch }}
with:
name: test-logs-windows-${{ matrix.arch }}
retention-days: 7