remove tarpaulin #71
Workflow file for this run
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: release | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [synchronize, labeled] | |
| push: | |
| branches: | |
| - "main" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| nightly-delftblue: | |
| name: "release-delftblue" | |
| runs-on: "ubuntu-latest" # fix | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'release') || (github.event_name == 'push')}} | |
| steps: | |
| - name: Prepare | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Gather rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Prepare fonts | |
| uses: ConorMacBride/install-package@v1 | |
| with: | |
| apt: fonts-linuxlibertine mandoc | |
| - name: Prepare texlive | |
| uses: teatimeguest/setup-texlive-action@v3 | |
| with: | |
| packages: | | |
| cleveref | |
| hyperref | |
| xetex | |
| amsmath | |
| a4wide | |
| ntgclass | |
| verbatim | |
| changepage | |
| amsfonts | |
| mathspec | |
| pgf | |
| framed | |
| caption | |
| geometry | |
| listings | |
| isodate | |
| parskip | |
| tools | |
| titlesec | |
| etoolbox | |
| fancyhdr | |
| fontspec | |
| xkeyval | |
| substr | |
| latex2man | |
| - name: Install musl-gcc | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y musl-tools | |
| - name: Install musl target for static linking | |
| run: rustup target add x86_64-unknown-linux-musl | |
| - name: Build gourd with musl | |
| run: cargo build --release --no-default-features --features="builtin-examples documentation" --target="x86_64-unknown-linux-musl" -vv | |
| - name: Run delftblue installer | |
| run: INSTALL_PATH="\$HOME/.local/bin" MANINSTALL_PATH="\$HOME/.local/share/man" target/x86_64-unknown-linux-musl/release/generate-installer.sh | |
| - name: Rename installers | |
| run: mv target/x86_64-unknown-linux-musl/release/install-x86_64-unknown-linux-musl.sh target/release/install-delftblue.sh && mv target/x86_64-unknown-linux-musl/release/uninstall-x86_64-unknown-linux-musl.sh target/release/uninstall-delftblue.sh | |
| - name: Upload installer | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "installer delftblue" | |
| path: | | |
| target/release/install-delftblue.sh | |
| target/release/uninstall-delftblue.sh | |
| retention-days: 30 | |
| - name: Upload binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "binaries musl" | |
| path: | | |
| target/x86_64-unknown-linux-musl/release/gourd | |
| target/x86_64-unknown-linux-musl/release/gourd_wrapper | |
| retention-days: 30 | |
| nightly-ubuntu: | |
| name: "release-ubuntu" | |
| runs-on: "ubuntu-latest" | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'release') || (github.event_name == 'push')}} | |
| steps: | |
| - name: Prepare | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Gather rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Prepare fonts | |
| uses: ConorMacBride/install-package@v1 | |
| with: | |
| apt: fonts-linuxlibertine mandoc | |
| - name: Prepare texlive | |
| uses: teatimeguest/setup-texlive-action@v3 | |
| with: | |
| packages: | | |
| cleveref | |
| hyperref | |
| xetex | |
| amsmath | |
| a4wide | |
| ntgclass | |
| verbatim | |
| changepage | |
| amsfonts | |
| mathspec | |
| pgf | |
| framed | |
| caption | |
| geometry | |
| listings | |
| isodate | |
| parskip | |
| tools | |
| titlesec | |
| etoolbox | |
| fancyhdr | |
| fontspec | |
| xkeyval | |
| substr | |
| latex2man | |
| - name: Build | |
| run: cargo build --release --features="full" -vv | |
| - name: Prepare installer | |
| run: target/release/generate-installer.sh | |
| - name: Upload installer | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "installer linux" | |
| path: | | |
| target/release/install-x86_64-unknown-linux-gnu.sh | |
| target/release/uninstall-x86_64-unknown-linux-gnu.sh | |
| retention-days: 30 | |
| - name: Upload binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "binaries linux" | |
| path: | | |
| target/release/gourd | |
| target/release/gourd_wrapper | |
| retention-days: 30 | |
| nightly-windows: | |
| name: "release-windows" | |
| runs-on: "windows-latest" | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'release') || (github.event_name == 'push')}} | |
| steps: | |
| - name: Prepare | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Gather rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Build | |
| run: cargo build --release -vv # as long as default features are "builtin-examples,fetching" this will be fine. | |
| - name: Upload exes | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "installer windows" | |
| path: | | |
| target/release/gourd.exe | |
| target/release/gourd_wrapper.exe | |
| retention-days: 30 | |
| nightly-macos: | |
| name: "release-macos" | |
| runs-on: "macos-latest" | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'release') || (github.event_name == 'push')}} | |
| steps: | |
| - name: Prepare | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Gather rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Prepare fonts | |
| uses: ConorMacBride/install-package@v1 | |
| with: | |
| brew: mandoc | |
| - name: Prepare texlive | |
| uses: teatimeguest/setup-texlive-action@v3 | |
| with: | |
| packages: | | |
| cleveref | |
| hyperref | |
| xetex | |
| amsmath | |
| a4wide | |
| ntgclass | |
| verbatim | |
| changepage | |
| amsfonts | |
| mathspec | |
| pgf | |
| framed | |
| caption | |
| geometry | |
| listings | |
| isodate | |
| parskip | |
| tools | |
| titlesec | |
| etoolbox | |
| fancyhdr | |
| fontspec | |
| xkeyval | |
| substr | |
| latex2man | |
| - name: Build | |
| run: cargo build --release --features="documentation" -vv | |
| - name: Prepare installer | |
| run: target/release/generate-installer.sh | |
| - name: Upload installer | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "installer macos" | |
| path: | | |
| target/release/install-aarch64-apple-darwin.sh | |
| target/release/uninstall-aarch64-apple-darwin.sh | |
| retention-days: 30 | |
| - name: Upload binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "binaries macos" | |
| path: | | |
| target/release/gourd | |
| target/release/gourd_wrapper | |
| retention-days: 30 |