diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f8509459..4123d4a6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/.github/workflows/intel-mkl.yml b/.github/workflows/intel-mkl.yml index fcb8c845..14a0b443 100644 --- a/.github/workflows/intel-mkl.yml +++ b/.github/workflows/intel-mkl.yml @@ -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 diff --git a/.github/workflows/netlib.yml b/.github/workflows/netlib.yml index d4df49a5..70048503 100644 --- a/.github/workflows/netlib.yml +++ b/.github/workflows/netlib.yml @@ -5,6 +5,7 @@ on: branches: - master pull_request: {} + workflow_dispatch: jobs: linux: @@ -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 }} diff --git a/.github/workflows/openblas.yml b/.github/workflows/openblas.yml index 4e717ba9..5375be70 100644 --- a/.github/workflows/openblas.yml +++ b/.github/workflows/openblas.yml @@ -5,12 +5,11 @@ on: branches: - master pull_request: {} + workflow_dispatch: jobs: linux: runs-on: ubuntu-22.04 - container: - image: rust strategy: fail-fast: false matrix: @@ -18,20 +17,15 @@ jobs: - 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 }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9cd3919b..66ca1553 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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