Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

binary: add SharedPtr struct to represent shared memory range feature. #87

binary: add SharedPtr struct to represent shared memory range feature.

binary: add SharedPtr struct to represent shared memory range feature. #87

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
target:
[
riscv32imac-unknown-none-elf,
riscv64imac-unknown-none-elf,
x86_64-unknown-none,
]
steps:
- uses: actions/checkout@v3
# Cache REF:
# - https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# - https://github.com/actions-rs/toolchain/issues/54
- name: Cache Rust
uses: actions/cache@v3
with:
key: rust-toolchain-${{ matrix.target }}
path: |
~/.rustup/settings.toml
~/.rustup/toolchains/stable-*
~/.rustup/update-hashes/stable-*
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Setup Rust
run: |
rustup toolchain install stable --profile minimal
rustup component add rustfmt clippy
rustup target add ${{ matrix.target }}
- name: Check format
run: cargo fmt --all --check
- name: Check clippy
run: cargo clippy -- -D warnings
- name: Check build
run: cargo build
- name: Check test
run: cargo test