Fix for M1 machines by updating/refreshing deps to unblock lukasz #1202
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
tests-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: llvm-tools-preview | |
- name: extract cpuid flags | |
id: extract-cpuid-flags | |
run: echo "flags=$(grep '^flags' /proc/cpuinfo | head -n1 | shasum)" >> $GITHUB_OUTPUT | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{steps.extract-cpuid-flags.outputs.flags }} | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate code coverage | |
env: | |
RUSTFLAGS: -D warnings -C target-cpu=native | |
RUST_BACKTRACE: full | |
run: cargo llvm-cov --verbose --workspace --lcov --output-path lcov.txt --locked | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: ./lcov.txt # optional | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) |