Fix Windows logic #22
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: 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/* |