ash-molten/.github/workflows/ci.yaml
Viktor Zoutman 98697e2620
MoltenVK 1.1.3 #feb8d41 (#58)
* 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>
2021-07-26 13:06:53 +02:00

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