Skip to content

Commit cbe35ee

Browse files
committed
fix: matrix
1 parent 7efc135 commit cbe35ee

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/rust.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ jobs:
5959
with:
6060
token: ${{ secrets.GITHUB_TOKEN }}
6161
args: --all-features
62-
coverage:
62+
test:
6363
runs-on: ${{ matrix.os }}
6464
strategy:
6565
matrix:
6666
os: [ macos-latest, windows-latest, ubuntu-latest ]
6767
toolchain: [ stable, nightly ]
68+
include:
69+
- os: ubuntu-latest
70+
toolchain: stable
71+
coverage: true
6872
steps:
6973
- uses: actions/checkout@v2
7074
- uses: actions-rs/toolchain@v1
@@ -76,9 +80,15 @@ jobs:
7680
~/.cargo/registry
7781
~/.cargo/git
7882
target
79-
key: ${{ runner.os }}-coverage-1-${{ hashFiles('**/Cargo.lock') }}
83+
key: ${{ runner.os }}-${{ matrix.toolchain }}-coverage--${{ hashFiles('**/Cargo.lock') }}
84+
- uses: actions-rs/cargo@v1
85+
if: !${{ matrix.coverage }}
86+
with:
87+
command: test
8088
- uses: actions-rs/[email protected]
89+
if: ${{ matrix.coverage }}
8190
- uses: codecov/codecov-action@v1
91+
if: ${{ matrix.coverage }}
8292
with:
8393
fail_ci_if_error: true
8494
fmt:

0 commit comments

Comments
 (0)