Skip to content

fix rust compile errors #11

fix rust compile errors

fix rust compile errors #11

Workflow file for this run

name: 🦀 Rust CI
on:
push:
# paths:
# - rust/**
# - .github/workflows/rust-ci.yml
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: "🗒️ Validate format"
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- beta
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup component add rustfmt
- run: cargo fmt --check --verbose
working-directory: rust
test:
name: "🧪 Run test"
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- beta
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo test --verbose
working-directory: rust
build:
name: "🔨 Run build"
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- beta
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
working-directory: rust