Bump version #98
This file contains hidden or 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
| name: Linux | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!dependabot/**' | |
| tags: | |
| - '**' | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| libgcroots: | |
| name: libgcroots | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| libgcroots: | |
| - no | |
| - installed | |
| - tiny-subst | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup | |
| run: | | |
| ./setup.sh | |
| - name: Generate configure | |
| run: | | |
| ./autogen.sh | |
| - name: "BDWGC: Checkout" | |
| if: matrix.libgcroots == 'installed' | |
| uses: actions/checkout@v6 | |
| with: | |
| path: bdwgc | |
| repository: bdwgc/bdwgc | |
| - name: "BDWGC: Configure" | |
| if: matrix.libgcroots == 'installed' | |
| run: | | |
| cmake \ | |
| -S bdwgc \ | |
| -B bdwgc.build \ | |
| -G Ninja \ | |
| -DCMAKE_INSTALL_PREFIX=/usr | |
| - name: "BDWGC: Build" | |
| if: matrix.libgcroots == 'installed' | |
| run: | | |
| cmake --build bdwgc.build | |
| - name: "BDWGC: Install" | |
| if: matrix.libgcroots == 'installed' | |
| run: | | |
| sudo cmake --install bdwgc.build | |
| - name: Configure | |
| run: | | |
| ./configure \ | |
| --enable-conf=uim \ | |
| --enable-maintainer-mode \ | |
| --prefix=/usr \ | |
| --with-libgcroots=${{ matrix.libgcroots }} | |
| - name: Build | |
| run: | | |
| make -j$(nproc) | |
| test: | |
| name: ${{ matrix.image }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: | |
| - arch-linux | |
| - debian-13 | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Install dependencies to generate configure | |
| run: | | |
| ./setup.sh | |
| - name: Generate configure | |
| run: | | |
| ./autogen.sh | |
| - name: Build Docker image | |
| run: | | |
| docker compose build ${{ matrix.image }} | |
| - name: Run Docker image | |
| run: | | |
| docker compose run ${{ matrix.image }} | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Build Docker image | |
| run: | | |
| docker compose build debian-13-release | |
| - name: Run Docker image | |
| run: | | |
| docker compose run debian-13-release | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: source | |
| path: | | |
| *.sum | |
| *.tar.* | |
| - name: Prepare release note | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| ruby \ | |
| -e 'print("## SigScheme "); | |
| puts(ARGF.read.split(/^## /)[1]. | |
| gsub(/\[(GH-\d+)\]\(.+?\)/) {$1}. | |
| strip)' \ | |
| NEWS.md | tee release-note.md | |
| previous_tag=$(gh release list \ | |
| --jq '.[].tagName' \ | |
| --json tagName \ | |
| --limit 1) | |
| echo | tee -a release-note.md | |
| echo "### Contributors" | tee -a release-note.md | |
| echo | tee -a release-note.md | |
| command_line="git shortlog -sn ${previous_tag}.." | |
| echo '```console' | tee -a release-note.md | |
| echo "\$ ${command_line}" | tee -a release-note.md | |
| ${command_line} | tee -a release-note.md | |
| echo '```' | tee -a release-note.md | |
| - name: Publish | |
| if: | | |
| github.ref_type == 'tag' | |
| id: create-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| title="$(head -n1 release-note.md | sed -e 's/^## //')" | |
| tail -n +2 release-note.md > release-note-without-version.md | |
| gh release create ${GITHUB_REF_NAME} \ | |
| --discussion-category Announcements \ | |
| --notes-file release-note-without-version.md \ | |
| --title "${title}" \ | |
| --verify-tag \ | |
| sigscheme-${GITHUB_REF_NAME}* |