rust.yml (1060B)
1 name: Rust 2 3 on: 4 push: 5 branches: 6 - master 7 - ci 8 pull_request: 9 branches: 10 - "*" 11 12 env: 13 CARGO_TERM_COLOR: always 14 15 jobs: 16 fmt: 17 name: Rustfmt 18 runs-on: ubuntu-latest 19 steps: 20 - uses: actions/checkout@v4 21 - uses: dtolnay/rust-toolchain@stable 22 with: 23 components: rustfmt 24 - run: cargo fmt --all -- --check 25 26 clippy: 27 name: Clippy 28 runs-on: ubuntu-latest 29 steps: 30 - uses: actions/checkout@v4 31 with: 32 submodules: recursive 33 - uses: dtolnay/rust-toolchain@stable 34 with: 35 components: clippy 36 - run: cargo clippy -- -D warnings 37 38 linux-build-test: 39 name: Build and Test (Linux) 40 uses: ./.github/workflows/build-and-test.yml 41 with: 42 os: ubuntu-latest 43 44 macos-build-test: 45 name: Build and Test (macOS) 46 uses: ./.github/workflows/build-and-test.yml 47 with: 48 os: macos-latest 49 50 windows-build-test: 51 name: Build and Test (Windows) 52 uses: ./.github/workflows/build-and-test.yml 53 with: 54 os: windows-latest