This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
feat: support NACL
extension
#75
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: 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 |