ci: fix public-api (#598) #380
This file contains 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: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
merge_group: | |
types: [checks_requested] | |
push: | |
branches: [master] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
msrv: | |
name: Read MSRV | |
uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@v0.1.0 | |
test: | |
needs: msrv | |
strategy: | |
fail-fast: false | |
matrix: | |
# prettier-ignore | |
target: | |
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu } | |
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin } | |
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc } | |
version: | |
- { name: msrv, version: "${{ needs.msrv.outputs.msrv }}" } | |
- { name: stable, version: stable } | |
name: ${{ matrix.target.name }} / ${{ matrix.version.name }} | |
runs-on: ${{ matrix.target.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup mold linker | |
if: matrix.target.os == 'ubuntu-latest' | |
uses: rui314/setup-mold@v1 | |
- name: Install Rust (${{ matrix.version.name }}) | |
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 | |
with: | |
toolchain: ${{ matrix.version.version }} | |
- name: Install just, cargo-hack, cargo-nextest | |
uses: taiki-e/install-action@v2.13.5 | |
with: | |
tool: just,cargo-hack,cargo-nextest | |
- name: Workaround MSRV issues | |
if: matrix.version.name == 'msrv' | |
run: just downgrade-for-msrv | |
- name: Tests | |
run: just test | |
timeout-minutes: 10 | |
doc_test: | |
name: doctest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust (nightly) | |
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 | |
with: | |
toolchain: nightly | |
- name: Install just | |
uses: taiki-e/install-action@v2.13.5 | |
with: | |
tool: just | |
- name: Test documentation | |
run: just test-docs | |
timeout-minutes: 10 |