Skip to content

Merge pull request #85 from hokunet/credit-approvals #42

Merge pull request #85 from hokunet/credit-approvals

Merge pull request #85 from hokunet/credit-approvals #42

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.IPC_DEPLOY_KEY }}
${{ secrets.BUILTIN_ACTORS_DEPLOY_KEY }}
${{ secrets.CONTRACTS_DEPLOY_KEY }}
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config
- name: Build
run: make build
- name: Run tests
run: make test
- name: Run linter
run: make lint
- name: Generate documentation
run: make doc