forked from jqlang/jq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double-installed doc (jqlang#2482)
The README symlink was causing the file to be installed twice in <DOCDIR>.
- Loading branch information
1 parent
076d0a2
commit 2d38843
Showing
3 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
linux: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: [linux-amd64-clang, linux-amd64-gcc] | ||
include: | ||
- name: linux-amd64-clang | ||
compiler: clang | ||
- name: linux-amd64-gcc | ||
compiler: gcc | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install packages | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -y \ | ||
automake \ | ||
autoconf \ | ||
bison \ | ||
flex \ | ||
gdb \ | ||
python3 \ | ||
valgrind | ||
- name: Build | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
autoreconf -fi | ||
rm src/lexer.c src/lexer.h | ||
rm src/parser.c src/parser.h | ||
./configure --disable-valgrind --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE | ||
make -j4 | ||
make dist | ||
- name: Test | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
ulimit -c unlimited | ||
make -j4 check | ||
- name: Show Test Logs | ||
if: ${{ failure() }} | ||
run: | | ||
cat test-suite.log | ||
cat tests/*.log | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jq-${{ matrix.name }} | ||
path: | | ||
jq | ||
macos: | ||
runs-on: macos-13 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x86_64, arm64] | ||
include: | ||
- arch: x86_64 | ||
suffix: amd64 | ||
- arch: arm64 | ||
suffix: arm64 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Install packages | ||
run: | | ||
brew update | ||
brew install \ | ||
autoconf \ | ||
automake \ | ||
libtool \ | ||
flex \ | ||
bison | ||
sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac | ||
- name: Build | ||
env: | ||
CC: clang -arch ${{ matrix.arch }} | ||
run: | | ||
autoreconf -fi | ||
rm src/lexer.c src/lexer.h | ||
rm src/parser.c src/parser.h | ||
./configure --disable-valgrind --with-oniguruma=builtin --host=${{ matrix.arch }}-apple-darwin$(uname -r) YACC="$(brew --prefix)/opt/bison/bin/bison -y" $COVERAGE | ||
make -j4 | ||
make dist | ||
- name: Test | ||
env: | ||
CC: clang -arch ${{ matrix.arch }} | ||
run: | | ||
ulimit -c unlimited | ||
make -j4 check | ||
- name: Show Test Logs | ||
if: ${{ failure() }} | ||
run: | | ||
cat test-suite.log | ||
cat tests/*.log | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jq-macos-${{ matrix.suffix }} | ||
path: | | ||
jq |
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