refactor: merge all package to one workspace #41
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: Rust check | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master", "ci" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lib-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set rust version | |
run: rustup override set nightly-2024-08-01 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: "nightly-2024-08-01" | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
./target | |
key: ${{ steps.rust-toolchain.outputs.cachekey }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
- name: Install cargo-make | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-make | |
- name: Run check | |
run: cargo make check-all | |
- name: Run test | |
run: cargo make test-all |