Create dist and upload on release also disable docs on build (#2648)
This commit is contained in:
1 parent
3c76a5b3f3
commit
3847ebb699
4 files changed
+54
-31
No files matched your search
+50
-29
@@ -39,28 +39,23 @@ jobs:
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y \
|
||||
automake \
|
||||
autoconf \
|
||||
bison \
|
||||
flex \
|
||||
gdb \
|
||||
python3
|
||||
sudo apt-get install -y automake autoconf
|
||||
- name: Build
|
||||
run: |
|
||||
autoreconf -fi
|
||||
autoreconf -i
|
||||
./configure --disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-docs \
|
||||
--disable-maintainer-mode \
|
||||
--disable-valgrind \
|
||||
--with-oniguruma=builtin \
|
||||
${{ matrix.configure_flag }} \
|
||||
YACC="$(which bison) -y"
|
||||
${{ matrix.configure_flag }}
|
||||
make
|
||||
strip jq
|
||||
- name: Test
|
||||
run: |
|
||||
make check
|
||||
git diff --exit-code
|
||||
- name: Upload Test Logs
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -97,28 +92,24 @@ jobs:
|
||||
run: |
|
||||
# brew update sometimes fails with "Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!"
|
||||
brew update || brew update-reset
|
||||
brew install \
|
||||
autoconf \
|
||||
automake \
|
||||
libtool \
|
||||
flex \
|
||||
bison
|
||||
brew install autoconf automake libtool
|
||||
- name: Build
|
||||
run: |
|
||||
autoreconf -fi
|
||||
autoreconf -i
|
||||
./configure --disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-docs \
|
||||
--disable-maintainer-mode \
|
||||
--disable-valgrind \
|
||||
--with-oniguruma=builtin \
|
||||
--enable-static \
|
||||
--enable-all-static \
|
||||
YACC="$(brew --prefix)/opt/bison/bin/bison -y"
|
||||
--enable-all-static
|
||||
make
|
||||
strip jq
|
||||
- name: Test
|
||||
run: |
|
||||
make check
|
||||
git diff --exit-code
|
||||
- name: Upload Test Logs
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -161,27 +152,26 @@ jobs:
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
bison
|
||||
flex
|
||||
- name: Build
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
autoreconf -fi
|
||||
autoreconf -i
|
||||
./configure --disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-docs \
|
||||
--disable-maintainer-mode \
|
||||
--disable-valgrind \
|
||||
--with-oniguruma=builtin \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
--enable-all-static \
|
||||
YACC="$(which bison) -y"
|
||||
--enable-all-static
|
||||
make
|
||||
strip jq.exe
|
||||
- name: Test
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
make check
|
||||
git diff --exit-code --ignore-submodules
|
||||
- name: Upload Test Logs
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -199,17 +189,47 @@ jobs:
|
||||
retention-days: 7
|
||||
path: jq.exe
|
||||
|
||||
release:
|
||||
dist:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
needs: [linux, macos, windows]
|
||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
||||
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
|
||||
- name: Create dist
|
||||
run: |
|
||||
autoreconf -i
|
||||
./configure --disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-docs \
|
||||
--disable-maintainer-mode \
|
||||
--disable-valgrind \
|
||||
--with-oniguruma=builtin
|
||||
make dist dist-zip
|
||||
git diff --exit-code
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: jq-dist
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
path: |
|
||||
jq-*.tar.gz
|
||||
jq-*.zip
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
needs: [linux, macos, windows, dist]
|
||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Merge built artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
@@ -223,6 +243,7 @@ jobs:
|
||||
cp artifacts/jq-linux-ubuntu-22.04-gcc/jq release/jq-linux-amd64
|
||||
cp artifacts/jq-macos-macos-13-gcc/jq release/jq-macos-amd64
|
||||
cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe
|
||||
cp artifacts/jq-dist/jq-* release/
|
||||
|
||||
gh release create $TAG_NAME --draft --title "jq ${TAG_NAME#v}" --generate-notes
|
||||
gh release upload $TAG_NAME --clobber release/jq-*
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
CC: ${{ matrix.compiler }}
|
||||
MAKEVARS: ${{ matrix.makevars }}
|
||||
run: |
|
||||
autoreconf -fi
|
||||
autoreconf -i
|
||||
rm src/lexer.c src/lexer.h
|
||||
rm src/parser.c src/parser.h
|
||||
./configure --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE
|
||||
|
||||
@@ -15,6 +15,8 @@ tags
|
||||
jq
|
||||
!tests/modules/lib/jq/
|
||||
jq.1
|
||||
jq-*.tar.gz
|
||||
jq-*.zip
|
||||
|
||||
# Generated source
|
||||
src/builtin.inc
|
||||
|
||||
@@ -28,7 +28,7 @@ git submodule as per the instructions below.
|
||||
(note that jq's tests require regexp support to pass). To build, run:
|
||||
|
||||
git submodule update --init # if building from git to get oniguruma
|
||||
autoreconf -fi # if building from git
|
||||
autoreconf -i # if building from git
|
||||
./configure --with-oniguruma=builtin
|
||||
make -j8
|
||||
make check
|
||||
|
||||
Reference in new issue
Block a user