Skip to content

Create FUNDING.json #263

Create FUNDING.json

Create FUNDING.json #263

Workflow file for this run

name: rust-check
on:
pull_request:
branches:
- '**'
env:
RUSTFLAGS: -Dwarnings
jobs:
rust-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt-get -o Acquire::Retries=3 update && sudo apt-get -o Acquire::Retries=3 install make git mesa-opencl-icd ocl-icd-opencl-dev wget -y && sudo apt upgrade -y
- name: setup rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- name: setup build cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
venus-worker/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: lint
run: |
cargo run -p ci -- lints
- name: test
run: |
cargo run -p ci -- test
- name: check build
run: |
cargo run -p ci -- compile