This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
fix(deps): update all dependencies #29
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: Rust CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'packages/rust-core/**' | |
- '.github/workflows/rust-ci.yml' | |
push: | |
branches: [main] | |
paths: | |
- 'packages/rust-core/**' | |
- '.github/workflows/rust-ci.yml' | |
env: | |
RUST_BACKTRACE: full | |
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG: true | |
CARGO_TERM_COLOR: always | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
RUST_LOG: debug | |
defaults: | |
run: | |
working-directory: packages/rust-core | |
jobs: | |
security-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cargo-audit | |
run: cargo install cargo-audit | |
- name: Generate lockfile | |
run: cargo generate-lockfile | |
- name: Audit dependencies | |
run: cargo audit | |
lint: | |
name: rust-ci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: fmt | |
run: cargo fmt --check | |
- name: Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
tests: | |
name: rust-ci-test | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- stable | |
# - beta | |
# - nightly | |
include: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-musl | |
# - os: macos-latest | |
# target: x86_64-apple-darwin | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{matrix.toolchain}} | |
target: ${{matrix.target}} | |
- name: Install cross-compilation tools | |
uses: taiki-e/setup-cross-toolchain-action@v1 | |
with: | |
target: ${{matrix.target}} | |
- name: Test | |
run: cargo test --verbose |