mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 21:31:30 +11:00
98697e2620
* patch feb8d41 * Update to macos 11 * Update xcode path * Forgot 1 xcode path * Also forgot a macos-latest Co-authored-by: Jake Shadle <jake.shadle@embark-studios.com>
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
name: CI
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: macos-11
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_12.5.app
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
# make sure all code has been formatted with rustfmt
|
|
- run: rustup component add rustfmt
|
|
- run: cargo fmt --all -- --check --color always
|
|
# run clippy to verify we have no warnings
|
|
- run: rustup component add clippy
|
|
- run: cargo fetch --target x86_64-apple-darwin
|
|
- run: cargo clippy --features pre-built -- -D warnings
|
|
|
|
cargo-deny:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
|
|
|
test-source:
|
|
name: Test (source build)
|
|
runs-on: macos-11
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_12.5.app
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- run: cargo fetch --target x86_64-apple-darwin
|
|
- run: cargo build
|
|
|
|
test:
|
|
name: Test (pre-built)
|
|
runs-on: macos-11
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_12.5.app
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- run: cargo fetch --target x86_64-apple-darwin
|
|
- run: cargo build --verbose --features pre-built
|