Skip to content

Commit

Permalink
Adopt action-rs for the toolchain (#52)
Browse files Browse the repository at this point in the history
* Adopt action-rs for the toolchain

* Disable code-coverate, as binaries are not available
  • Loading branch information
pizzamig committed Dec 16, 2023
1 parent 416065c commit 1838739
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/rust.yml
Expand Up @@ -12,15 +12,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
rust:
- stable
- beta
- nightly
env:
RUSTFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
rust-version: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v1
- name: Header
run: rustc -Vv
Expand All @@ -35,23 +39,28 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- uses: actions-rs/toolchain@v1
with:
rust-version: nightly
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
- name: Header
run: rustc -Vv
- name: test
run: cargo test --verbose

code-coverage:
name: Generate code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/tarpaulin@v0.1
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
#code-coverage:
#name: Generate code coverage
#runs-on: ubuntu-latest
#steps:
#- uses: actions/checkout@v2
#- uses: actions-rs/toolchain@v1
#with:
#toolchain: stable
#override: true
#- uses: Swatinem/rust-cache@v1
#- uses: actions-rs/tarpaulin@v0.1
#with:
#version: '0.26.0'
#- name: Upload to codecov.io
#uses: codecov/codecov-action@v1

0 comments on commit 1838739

Please sign in to comment.