Skip to content

[v2] chore: update deps #4193

[v2] chore: update deps

[v2] chore: update deps #4193

Workflow file for this run

name: Continuous integration
on:
push:
branches:
- master
- release/*
pull_request:
env:
RUSTFLAGS: -Dwarnings
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checking out fvm
uses: actions/checkout@v3
- name: Check Format
run: cargo fmt -- --check
cargo:
needs: [rustfmt]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
name: [build, check-clippy, test-fvm, test, conformance]
include:
- name: build
key: v3
push: true
# we disable default features because rust will otherwise unify them and turn on opencl in CI.
command: build
args: --no-default-features
- name: check-clippy
key: v3
command: clippy
# we disable default features because rust will otherwise unify them and turn on opencl in CI.
args: --all --all-targets --no-default-features
- name: test-fvm
key: v3-cov
push: true
covname: fvm-lcov.info
command: llvm-cov
args: --package fvm --no-default-features --lcov --output-path fvm-lcov.info
- name: test
key: v3-cov
covname: lcov.info
command: llvm-cov
args: --all --exclude fvm --exclude fvm_conformance_tests --exclude "*actor" --lcov --output-path lcov.info
- name: conformance
key: v3
command: test
args: --package fvm_conformance_tests
submodules: true
exclude:
- os: macos-latest
name: check-clippy
- os: macos-latest
name: conformance
- os: macos-latest
name: test
- os: macos-latest
name: test-fvm
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
name: ${{matrix.os}} - ${{ matrix.name }}
steps:
- name: Checking out fvm
uses: actions/checkout@v3
with:
submodules: ${{ matrix.submodules }}
# we don't check the lockfile in; this is needed for cache restoration/saving
- name: Installing Cargo llvm-cov
if: ${{ matrix.covname }}
uses: taiki-e/install-action@bc0a06a003a8225fe3e896c9ed3a4c3cc2e8416a
with:
tool: [email protected]
- name: Setting up cache
uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f
with:
save-if: ${{ matrix.push == true }}
# change this to invalidate sccache for this job
prefix-key: ${{ matrix.key }}
- name: Running ${{ matrix.command }}
run: cargo ${{ matrix.command }} --locked ${{ matrix.args }}
- name: Upload coverage to Codecov
if: ${{ matrix.covname }}
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
with:
files: ${{ matrix.covname }}
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true