ash-molten/.github/workflows/ci.yaml

61 lines
1.5 KiB
YAML
Raw Normal View History

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
2020-05-11 17:51:50 +10:00
- 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