Skip to content

Commit

Permalink
Update the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Jan 22, 2024
1 parent d4b9b39 commit cf8f209
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ concurrency:
cancel-in-progress: true

jobs:
macos:
name: macOS
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ructions/toolchain@v2
with: {toolchain: stable, components: "clippy, rustfmt"}
- run: cargo clippy -- -D warnings
- run: cargo fmt --all -- --check

test-macos:
runs-on: macos-latest
strategy:
fail-fast: false
Expand All @@ -26,19 +34,16 @@ jobs:
- netlib
- openblas
steps:
- uses: actions/checkout@v3
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--features=${{ matrix.feature }}
- uses: actions/checkout@v4
- uses: ructions/toolchain@v2
with: {toolchain: stable}
- run: cargo test --features=${{ matrix.feature }}
env:
CC: gcc-12
FC: gfortran-12
LIBRARY_PATH: /usr/local/opt/gcc@12/lib/gcc/12

ubuntu:
name: Ubuntu
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -47,9 +52,7 @@ jobs:
- netlib
- openblas
steps:
- uses: actions/checkout@v3
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--features=${{ matrix.feature }}
- uses: actions/checkout@v4
- uses: ructions/toolchain@v2
with: {toolchain: stable}
- run: cargo test --features=${{ matrix.feature }}

0 comments on commit cf8f209

Please sign in to comment.