CI Build #80
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 Build | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**/*.md' | |
- 'LICENSE' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
env: | |
RUSTFLAGS: '--deny warnings' | |
jobs: | |
format: | |
name: Rust Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Rust Toolchain setup | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Format Check | |
uses: mbrobbel/rustfmt-check@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
name: CI Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable] | |
TARGET: | |
- x86_64-unknown-linux-gnu | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Toolchain setup | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.TARGET }} | |
- name: Build | |
run: cargo build |