CI: Replace with GitHub Actions #1
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # Monthly | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- Linux | |
- Windows | |
- macOS | |
rust: | |
- 1.17.0 | |
- stable | |
- beta | |
include: | |
- label: Linux | |
os: ubuntu-24.04 | |
- label: Windows | |
os: windows-2022 | |
- label: macOS | |
os: macOS-14 | |
name: test - ${{ matrix.rust }} - ${{ matrix.label }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Build | |
run: cargo build | |
- name: Test | |
run: cargo test | |
- name: Build (serde_support) | |
run: cargo build --features serde_support | |
- name: Test (serde_support) | |
run: cargo test --features serde_support | |
- name: Build (serde_support_test) | |
run: cargo build --features serde_support_test | |
- name: Test (serde_support_test) | |
run: cargo test --features serde_support_test | |
clippy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run clippy | |
run: cargo clippy --all --all-targets | |
rustfmt: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Run rustfmt | |
run: cargo fmt --all -- --check |