Skip to content

Commit

Permalink
CI: fix workspace override directives; remove codecov (#150)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tarcieri committed Mar 21, 2022
1 parent 890e5ab commit 625eefc
Showing 1 changed file with 6 additions and 49 deletions.
55 changes: 6 additions & 49 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.56.1
components: clippy
profile: minimal
override: true
- run: cargo clippy --all --all-features -- -D warnings

rustfmt:
Expand All @@ -34,10 +35,10 @@ jobs:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt

profile: minimal
override: true
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand All @@ -50,51 +51,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- run: cargo +nightly build --benches

codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-coverage-cargo-build-target-${{ hashFiles('Cargo.lock') }}

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: latest
args: --all -- --test-threads 1

- name: Upload to codecov.io
uses: codecov/codecov-action@v1.0.13

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
- run: cargo +nightly build --benches

0 comments on commit 625eefc

Please sign in to comment.