|
5 | 5 | branches:
|
6 | 6 | - master
|
7 | 7 | pull_request: {}
|
| 8 | + workflow_dispatch: |
8 | 9 |
|
9 | 10 | jobs:
|
10 | 11 | check-format:
|
11 | 12 | runs-on: ubuntu-22.04
|
12 | 13 | steps:
|
13 |
| - - uses: actions/checkout@v1 |
14 |
| - - uses: actions-rs/cargo@v1 |
15 |
| - with: |
16 |
| - command: fmt |
17 |
| - args: -- --check |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + - name: fmt |
| 16 | + run: cargo fmt -- --check |
18 | 17 |
|
19 | 18 | check:
|
20 | 19 | runs-on: ubuntu-22.04
|
21 | 20 | steps:
|
22 |
| - - uses: actions/checkout@v1 |
23 |
| - - uses: actions-rs/cargo@v1 |
24 |
| - with: |
25 |
| - command: check |
26 |
| - args: --all-targets |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + - name: cargo check |
| 23 | + run: cargo check --all-targets |
27 | 24 |
|
28 | 25 | check-doc:
|
29 | 26 | runs-on: ubuntu-22.04
|
30 | 27 | steps:
|
31 |
| - - uses: actions/checkout@v1 |
32 |
| - - uses: actions-rs/cargo@v1 |
33 |
| - with: |
34 |
| - command: doc |
35 |
| - args: --no-deps |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + - name: cargo doc |
| 30 | + run: cargo doc --no-deps |
36 | 31 |
|
37 | 32 | clippy:
|
38 | 33 | runs-on: ubuntu-22.04
|
39 | 34 | steps:
|
40 |
| - - uses: actions/checkout@v1 |
41 |
| - - uses: actions-rs/cargo@v1 |
42 |
| - with: |
43 |
| - command: clippy |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + - name: cargo clippy |
| 37 | + run: cargo clippy |
44 | 38 |
|
45 | 39 | coverage:
|
46 | 40 | runs-on: ubuntu-22.04
|
47 | 41 | container:
|
48 |
| - image: ghcr.io/rust-math/rust-mkl:1.63.0-2020.1 |
| 42 | + image: xd009642/tarpaulin:develop-nightly |
49 | 43 | options: --security-opt seccomp=unconfined
|
50 | 44 | steps:
|
51 |
| - - uses: actions/checkout@v2 |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - uses: dtolnay/rust-toolchain@nightly |
| 47 | + - name: Install Cross |
| 48 | + uses: taiki-e/install-action@v2 |
| 49 | + with: |
| 50 | + tool: cargo-tarpaulin |
52 | 51 | - name: Generate code coverage
|
53 |
| - run: | |
54 |
| - cargo tarpaulin --features=intel-mkl-system --out Xml |
| 52 | + run: cargo +nightly tarpaulin --features=intel-mkl-static --out xml |
55 | 53 | - name: Upload to codecov.io
|
56 |
| - uses: codecov/codecov-action@v1 |
| 54 | + uses: codecov/codecov-action@v5 |
0 commit comments