Skip to content

Commit

Permalink
Merge branch 'master' into fix-ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
kerristrasz committed Jun 26, 2024
2 parents cd5829b + 8a4d46c commit 89f641c
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
test:
name: Tests (${{matrix.os}})
runs-on: ${{matrix.os}}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Run tests
run: cargo test
- name: Run tests (preserve-order)
run: cargo test --features preserve_order

build:
name: Build (${{matrix.os}})
runs-on: ${{matrix.os}}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: cargo check
- name: Check (preserve-order)
run: cargo check --features preserve_order
- name: Check (no-std)
run: cargo check --no-default-features

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets

format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run rustfmt
run: cargo fmt -- --check

docs:
name: Check documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run cargo doc
run: cargo doc --no-deps --workspace

0 comments on commit 89f641c

Please sign in to comment.