Add files via upload #45
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: "Rust Check, Test, Lint CI" | ||
on: | ||
push: | ||
branches: ["main", "develop"] | ||
pull_request: | ||
branches: ["main", "develop"] | ||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTDOCFLAGS: -D warnings | ||
RUSTFLAGS: "-Dwarnings" | ||
jobs: | ||
lints: | ||
name: Lints | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
- name: Rust setup | ||
uses: ./.github/actions/rust-setup | ||
- name: Run cargo check | ||
run: cargo check | ||
- name: Run cargo check on release version | ||
run: cargo check --release | ||
- name: Run cargo fmt | ||
run: cargo fmt --all -- --check | ||
- name: Run Clippy | ||
run: cargo clippy --all-targets | ||
doctests: | ||
needs: [lints] | ||
name: Check Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
- name: Rust setup | ||
uses: ./.github/actions/rust-setup | ||
- name: Run cargo doc | ||
run: cargo doc --no-deps | ||
build: | ||
needs: [lints, doctests] | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
- name: Rust setup | ||
uses: ./.github/actions/rust-setup | ||
- name: Install OpenMP to link for rapidnsark on ubuntu-latest | ||
if: ${{ matrix.os == ubuntu-latest }} | ||
Check failure on line 66 in .github/workflows/rust.yaml GitHub Actions / Rust Check, Test, Lint CIInvalid workflow file
|
||
run: | | ||
sudo apt update && sudo apt upgrade | ||
sudo apt install libomp-dev | ||
- name: Run cargo build | ||
run: cargo build | ||
- name: Run cargo build on release version | ||
run: cargo build --release |