Run clippy and build #27
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, staging, trying] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "19 2 * * 4" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
clippy: | |
name: Lints | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy | |
build: | |
name: Build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
targets: x86_64-apple-darwin, aarch64-apple-darwin | |
- run: cargo install universal2 | |
- run: sh ./BuildPackage.sh | |
- uses: actions/[email protected] | |
with: | |
name: macOS Universal Release | |
path: target/DiskDbg.pkg |