Skip to content

Run clippy and build #20

Run clippy and build

Run clippy and build #20

Workflow file for this run

name: Run clippy and build
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "19 2 * * 4"
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src, rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: clippy
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: -Zunstable-options --out-dir=out-debug
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: --release -Zunstable-options --out-dir=out
- uses: actions/[email protected]
with:
name: macOS Debug
path: out-debug/*
- uses: actions/[email protected]
with:
name: macOS Release
path: out/*
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: -Zunstable-options --out-dir=out-debug
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: --release -Zunstable-options --out-dir=out
- uses: actions/[email protected]
with:
name: Windows Debug
path: out-debug/*
- uses: actions/[email protected]
with:
name: Windows Release
path: out/*