diff options
author | Ken Takusagawa <kenta@mit.edu> | 2022-08-11 21:51:24 -0400 |
---|---|---|
committer | Ken Takusagawa <kenta@mit.edu> | 2022-08-11 22:15:44 -0400 |
commit | 3bdca70f55346144d15e65e505663f145738242d (patch) | |
tree | bd5c646b6e7b3124ee630597463081d4322eeb52 | |
parent | 6491b531331885cb6ad6f395f9854f44a5b0a9a5 (diff) | |
download | bsc-3bdca70f55346144d15e65e505663f145738242d.tar.gz bsc-3bdca70f55346144d15e65e505663f145738242d.tar.bz2 bsc-3bdca70f55346144d15e65e505663f145738242d.zip |
build the release notes PDF and HTML in CI.
-rw-r--r-- | .github/workflows/build.yml | 25 | ||||
-rwxr-xr-x | .github/workflows/install_dependencies_releasenotes_ubuntu.sh | 7 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e6a814b..ae53af1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -246,6 +246,31 @@ jobs: name: ${{matrix.os}}-doc-not-tar path: inst/doc + build-releasenotes-ubuntu: + # Release Notes only need to be built once, so we build on recent + # Ubuntu, not Mac OS. Later, the release script will copy the + # generated release notes to all release tarballs. + strategy: + matrix: + # asciidoctor-pdf does not exist on ubuntu 18.04 + os: [ ubuntu-20.04, ubuntu-22.04 ] + name: "Build doc: ${{ matrix.os }}" + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + shell: bash + run: "sudo .github/workflows/install_dependencies_releasenotes_ubuntu.sh" + - name: Build + run: | + make install-release + tar czf inst.tar.gz inst + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.os }} releasenotes + path: inst.tar.gz + test-ubuntu: strategy: matrix: diff --git a/.github/workflows/install_dependencies_releasenotes_ubuntu.sh b/.github/workflows/install_dependencies_releasenotes_ubuntu.sh new file mode 100755 index 00000000..123dc9bb --- /dev/null +++ b/.github/workflows/install_dependencies_releasenotes_ubuntu.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +apt-get update + +apt-get install -y asciidoctor \ + ruby-asciidoctor-pdf + +# ruby-asciidoctor-pdf exists on Ubuntu 20.04 and later |