Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release pipeline #2620

Merged
merged 11 commits into from
Jul 2, 2023
Prev Previous commit
Next Next commit
Locate bison for Windows build
  • Loading branch information
owenthereal committed Jul 1, 2023
commit fc505694a74d0045c3e1046b12c1b3588c206db4
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down