Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Dec 14, 2024
1 parent fb1b6d6 commit a0aa15f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 92 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Generate cargo-doc
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: Generate documentation
run: cargo doc --no-deps

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5

# Upload target/doc directory
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'target/doc'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
48 changes: 10 additions & 38 deletions .github/workflows/intel-mkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,16 @@ on:
branches:
- master
pull_request: {}
workflow_dispatch:

jobs:
windows:
runs-on: windows-2019
intel-mkl:
strategy:
fail-fast: false
matrix:
system: [ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=intel-mkl-static
linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=intel-mkl-static
linux-container:
runs-on: ubuntu-22.04
container:
image: ghcr.io/rust-math/rust-mkl:1.63.0-2020.1
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=intel-mkl-system
- uses: actions/checkout@v4
- name: cargo test
run: cargo test --manifest-path=ndarray-linalg/Cargo.toml --no-default-features --features=intel-mkl-static --verbose
12 changes: 4 additions & 8 deletions .github/workflows/netlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
pull_request: {}
workflow_dispatch:

jobs:
linux:
Expand All @@ -15,15 +16,10 @@ jobs:
- static
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: apt install gfortran
run: |
sudo apt update
sudo apt install -y gfortran
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=netlib-${{ matrix.feature }}
- name: cargo test
run: cargo test --manifest-path=ndarray-linalg/Cargo.toml --no-default-features --features=netlib-${{ matrix.feature }}
22 changes: 8 additions & 14 deletions .github/workflows/openblas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,27 @@ on:
branches:
- master
pull_request: {}
workflow_dispatch:

jobs:
linux:
runs-on: ubuntu-22.04
container:
image: rust
strategy:
fail-fast: false
matrix:
feature:
- static
- system
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: apt install gfortran
run: |
apt update
apt install -y gfortran
sudo apt update
sudo apt install -y gfortran
- name: Install OpenBLAS by apt
run: |
apt update
apt install -y libopenblas-dev
sudo apt update
sudo apt install -y libopenblas-dev
if: ${{ contains(matrix.feature, 'system') }}
- uses: actions-rs/cargo@v1
with:
command: test
args: >
--manifest-path=ndarray-linalg/Cargo.toml
--no-default-features
--features=openblas-${{ matrix.feature }}
- name: cargo test
run: cargo test --manifest-path=ndarray-linalg/Cargo.toml --no-default-features --features=openblas-${{ matrix.feature }}
46 changes: 22 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,50 @@ on:
branches:
- master
pull_request: {}
workflow_dispatch:

jobs:
check-format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions/checkout@v4
- name: fmt
run: cargo fmt -- --check

check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-targets
- uses: actions/checkout@v4
- name: cargo check
run: cargo check --all-targets

check-doc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- uses: actions/checkout@v4
- name: cargo doc
run: cargo doc --no-deps

clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: clippy
- uses: actions/checkout@v4
- name: cargo clippy
run: cargo clippy

coverage:
runs-on: ubuntu-22.04
container:
image: ghcr.io/rust-math/rust-mkl:1.63.0-2020.1
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Install Cross
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- name: Generate code coverage
run: |
cargo tarpaulin --features=intel-mkl-system --out Xml
run: cargo +nightly tarpaulin --features=intel-mkl-static --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5

0 comments on commit a0aa15f

Please sign in to comment.