This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
build #229
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: build | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
- staging.tmp | |
- trying.tmp | |
schedule: | |
- cron: '0 1 1 * *' # at 01:00 UTC on the first day of each month | |
workflow_dispatch: | |
jobs: | |
cargo-test-ubuntu: | |
name: cargo test (Ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install OpenMP | |
run: | | |
sudo apt-get update --assume-yes --quiet --quiet | |
sudo apt-get install --assume-yes --quiet --quiet --no-install-recommends libgomp1 | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --all-targets -- --include-ignored | |
# `cargo test --all-targets` does not run doctests: https://github.com/rust-lang/cargo/issues/6669. | |
- name: cargo test (doc) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --doc | |
cargo-test-windows: | |
name: cargo test (Windows) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --all-targets -- --include-ignored | |
# `cargo test --all-targets` does not run doctests: https://github.com/rust-lang/cargo/issues/6669. | |
- name: cargo test (doc) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --doc | |
cargo-fmt-clippy: | |
name: cargo fmt/clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
override: true | |
- name: cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --verbose --all -- --check --verbose | |
- name: cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --verbose --workspace --all-targets -- --deny warnings | |
cargo-deny: | |
name: cargo deny | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo deny | |
uses: EmbarkStudios/cargo-deny-action@v1 |