Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jun 24, 2024
1 parent 9a3666e commit e440ef1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ jobs:
- thumbv7em-none-eabi
- thumbv7em-none-eabihf
- thumbv7m-none-eabi
features: ['', 'async']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.TARGET }}

- name: Checkout CI scripts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'eldruin/rust-driver-ci-scripts'
ref: 'master'
Expand All @@ -39,14 +40,14 @@ jobs:
- run: ./ci/patch-no-std.sh
if: ${{ ! contains(matrix.TARGET, 'x86_64') }}

- run: cargo build --target=${{ matrix.TARGET }}
- run: cargo build --target=${{ matrix.TARGET }} --features=${{ matrix.features }}

checks:
name: Checks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
Expand All @@ -60,7 +61,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.79.0
Expand All @@ -78,7 +79,7 @@ jobs:
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -93,16 +94,15 @@ jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Run cargo-tarpaulin
run: cargo tarpaulin --out Lcov -- --test-threads 1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info

- name: upload to Coveralls
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit e440ef1

Please sign in to comment.