Skip to content

Workflow file for this run

name: 🦀 Rust CI

Check failure on line 1 in .github/workflows/rust-ci.yml

View workflow run for this annotation

GitHub Actions / 🦀 Rust CI

Invalid workflow file

The workflow is not valid. .github/workflows/rust-ci.yml: Expected mapping end
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:
- stable
- beta
- nightly
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:
- stable
- beta
- nightly
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"
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
os:
- ubuntu-latest
- windows-latest
runs-on: {{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
working-directory: rust