Skip to content

Commit

Permalink
Trying better CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerclique committed Jul 22, 2024
1 parent 595e862 commit a90a2b8
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,41 @@ env:
CARGO_TERM_COLOR: always

jobs:
formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt check
uses: actions-rust-lang/rustfmt@v1

build:
name: Check build
needs: formatting
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Build sources
uses: actions-rs/cargo@v1
with:
command: build
args: --release
run: cargo check --release

test:
name: Check tests
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run tests
run: cargo test --verbose

0 comments on commit a90a2b8

Please sign in to comment.