add cargo workflow
Rust / Cargo / Lint (push) Failing after 4m47s Details
Rust / Cargo / Test (beta) (push) Has been cancelled Details
Rust / Cargo / Test (nightly) (push) Has been cancelled Details
Rust / Cargo / Test (stable) (push) Has been cancelled Details
Rust / Cargo / Compile (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-01-10 20:47:44 +01:00
parent a712e8fb1c
commit 8e742c7dc1
1 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,52 @@
name: Rust / Cargo
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Lint
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
components: clippy
- name: Build | Lint
run: cargo clippy
compile:
name: Compile
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Build | Compile
run: cargo check
test:
name: Test
strategy:
matrix:
rust:
- stable
- beta
- nightly
runs-on: ${{ matrix.os }}
needs: [compile]
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: ${{ matrix.rust }}
- name: Build | Compile
run: cargo test