Skip to content

Commit 625eefc

Browse files
authored
CI: fix workspace override directives; remove codecov (#150)
The lack of override directives in the workspace config means newer rustc versions than intended are being used which breaks the build: #149 Codecov hasn't been terribly helpful and adds to build times / spam. This commit removes it.
1 parent 890e5ab commit 625eefc

File tree

1 file changed

+6
-49
lines changed

1 file changed

+6
-49
lines changed

.github/workflows/workspace.yml

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
- uses: actions/checkout@v1
2121
- uses: actions-rs/toolchain@v1
2222
with:
23-
profile: minimal
2423
toolchain: 1.56.1
2524
components: clippy
25+
profile: minimal
26+
override: true
2627
- run: cargo clippy --all --all-features -- -D warnings
2728

2829
rustfmt:
@@ -34,10 +35,10 @@ jobs:
3435
- name: Install stable toolchain
3536
uses: actions-rs/toolchain@v1
3637
with:
37-
profile: minimal
3838
toolchain: stable
3939
components: rustfmt
40-
40+
profile: minimal
41+
override: true
4142
- name: Run cargo fmt
4243
uses: actions-rs/cargo@v1
4344
with:
@@ -50,51 +51,7 @@ jobs:
5051
- uses: actions/checkout@v1
5152
- uses: actions-rs/toolchain@v1
5253
with:
53-
profile: minimal
5454
toolchain: nightly
55-
- run: cargo +nightly build --benches
56-
57-
codecov:
58-
runs-on: ubuntu-latest
59-
steps:
60-
- name: Checkout repository
61-
uses: actions/checkout@v2
62-
63-
- name: Cache cargo registry
64-
uses: actions/cache@v1
65-
with:
66-
path: ~/.cargo/registry
67-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
68-
69-
- name: Cache cargo index
70-
uses: actions/cache@v1
71-
with:
72-
path: ~/.cargo/git
73-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
74-
75-
- name: Cache cargo build
76-
uses: actions/cache@v1
77-
with:
78-
path: target
79-
key: ${{ runner.os }}-coverage-cargo-build-target-${{ hashFiles('Cargo.lock') }}
80-
81-
- name: Install stable toolchain
82-
uses: actions-rs/toolchain@v1
83-
with:
84-
toolchain: stable
55+
profile: minimal
8556
override: true
86-
87-
- name: Run cargo-tarpaulin
88-
uses: actions-rs/[email protected]
89-
with:
90-
version: latest
91-
args: --all -- --test-threads 1
92-
93-
- name: Upload to codecov.io
94-
uses: codecov/[email protected]
95-
96-
- name: Archive code coverage results
97-
uses: actions/upload-artifact@v1
98-
with:
99-
name: code-coverage-report
100-
path: cobertura.xml
57+
- run: cargo +nightly build --benches

0 commit comments

Comments
 (0)