Create dist and upload on release also disable docs on build (#2648)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by itchyny · committed by GitHub · parent 3c76a5b · Browse files · 4 files·+52 added−29 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+52 added−29 removed
- other:+52 added−29 removed
Provenance
- Commit
3847ebb- Tree
7b22f4c- Author
itchyny <itchyny@cybozu.co.jp>- Committer
GitHub <noreply@github.com>- Parent
3c76a5b
4 files changed+52 added−29 removed
modified:.github/workflows/ci.yml+48 added-27 removed
37 unmodified lines38 submodules: true39 - name: Install packages40 run: |41 sudo apt-get update -qq42- sudo apt-get install -y \43- automake \44- autoconf \45- bison \46- flex \47- gdb \48- python342+ sudo apt-get install -y automake autoconf43 - name: Build44 run: |51- autoreconf -fi45+ autoreconf -i46 ./configure --disable-dependency-tracking \47 --disable-silent-rules \48+ --disable-docs \49 --disable-maintainer-mode \50 --disable-valgrind \51 --with-oniguruma=builtin \57- ${{ matrix.configure_flag }} \58- YACC="$(which bison) -y"52+ ${{ matrix.configure_flag }}53 make54 strip jq55 - name: Test56 run: |57 make check58+ git diff --exit-code59 - name: Upload Test Logs60 if: ${{ failure() }}61 uses: actions/upload-artifact@v362 with:28 unmodified lines91 - name: Install packages92 run: |93 # brew update sometimes fails with "Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!"94 brew update || brew update-reset100- brew install \101- autoconf \102- automake \103- libtool \104- flex \105- bison95+ brew install autoconf automake libtool96 - name: Build97 run: |108- autoreconf -fi98+ autoreconf -i99 ./configure --disable-dependency-tracking \100 --disable-silent-rules \101+ --disable-docs \102 --disable-maintainer-mode \103 --disable-valgrind \104 --with-oniguruma=builtin \105 --enable-static \115- --enable-all-static \116- YACC="$(brew --prefix)/opt/bison/bin/bison -y"106+ --enable-all-static107 make108 strip jq109 - name: Test110 run: |111 make check112+ git diff --exit-code113 - name: Upload Test Logs114 if: ${{ failure() }}115 uses: actions/upload-artifact@v3116 with:34 unmodified lines151 clang152 autoconf153 automake154 libtool164- bison165- flex155 - name: Build156 shell: msys2 {0}157 run: |169- autoreconf -fi158+ autoreconf -i159 ./configure --disable-dependency-tracking \160 --disable-silent-rules \161+ --disable-docs \162 --disable-maintainer-mode \163 --disable-valgrind \164 --with-oniguruma=builtin \165 --disable-shared \166 --enable-static \177- --enable-all-static \178- YACC="$(which bison) -y"167+ --enable-all-static168 make169 strip jq.exe170 - name: Test171 shell: msys2 {0}172 run: |173 make check174+ git diff --exit-code --ignore-submodules175 - name: Upload Test Logs176 if: ${{ failure() }}177 uses: actions/upload-artifact@v3178 with:9 unmodified lines188 if-no-files-found: error189 retention-days: 7190 path: jq.exe191 192+ dist:193+ runs-on: ubuntu-latest194+ steps:195+ - name: Clone repository196+ uses: actions/checkout@v3197+ with:198+ submodules: true199+ - name: Install packages200+ run: |201+ sudo apt-get update -qq202+ sudo apt-get install -y automake autoconf203+ - name: Create dist204+ run: |205+ autoreconf -i206+ ./configure --disable-dependency-tracking \207+ --disable-silent-rules \208+ --disable-docs \209+ --disable-maintainer-mode \210+ --disable-valgrind \211+ --with-oniguruma=builtin212+ make dist dist-zip213+ git diff --exit-code214+ - name: Upload Artifacts215+ uses: actions/upload-artifact@v3216+ with:217+ name: jq-dist218+ if-no-files-found: error219+ retention-days: 7220+ path: |221+ jq-*.tar.gz222+ jq-*.zip223+224 release:225 runs-on: ubuntu-latest226 permissions:227 contents: write206- needs: [linux, macos, windows]228+ needs: [linux, macos, windows, dist]229 if: startsWith(github.event.ref, 'refs/tags/v')230 steps:231 - name: Clone repository232 uses: actions/checkout@v3211- with:212- submodules: true233 - name: Merge built artifacts234 uses: actions/download-artifact@v3235 with:236 path: artifacts5 unmodified lines242 mkdir release243 cp artifacts/jq-linux-ubuntu-22.04-gcc/jq release/jq-linux-amd64244 cp artifacts/jq-macos-macos-13-gcc/jq release/jq-macos-amd64245 cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe246+ cp artifacts/jq-dist/jq-* release/247 248 gh release create $TAG_NAME --draft --title "jq ${TAG_NAME#v}" --generate-notes249 gh release upload $TAG_NAME --clobber release/jq-*modified:.github/workflows/scanbuild.yml+1 added-1 removed
46 unmodified lines4748495051515253545522 unmodified lines46 unmodified lines env: 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 scan-build --keep-going make -j422 unmodified linesmodified:.gitignore+2 added
13 unmodified lines14 15 jq16 !tests/modules/lib/jq/17 jq.118+jq-*.tar.gz19+jq-*.zip20 21 # Generated source22 src/builtin.inc23 *.pc35 unmodified linesmodified:README.md+1 added-1 removed
26 unmodified lines2728293031313233343543 unmodified lines26 unmodified linesgit 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
43 unmodified lines