This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
Mirrors branch main from private at 9c7cceefc844b0fa24e163690bf064b7c54a8435 #10
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" | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: cargo build and test | |
# Needs big runner for the test. | |
runs-on: ubuntu-22.04-github-hosted-16core | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: cargo build --verbose | |
- run: cargo test --verbose --all | |
formatting: | |
name: cargo fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt | |
- name: Rustfmt Check | |
uses: actions-rust-lang/rustfmt@v1 |