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

64 lines
1.6 KiB
YAML
Raw Normal View History

on: [push, pull_request]
name: CI
jobs:
lint:
name: Lint
2020-11-10 07:31:47 +11:00
runs-on: macos-latest
env:
2020-11-10 07:31:47 +11:00
DEVELOPER_DIR: /Applications/Xcode_12.1.app
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# make sure all code has been formatted with rustfmt
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check --color always
# run clippy to verify we have no warnings
- run: rustup component add clippy
2020-11-14 09:10:57 +11:00
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --features pre-built -- -D warnings
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2020-05-11 17:51:50 +10:00
- uses: EmbarkStudios/cargo-deny-action@v1
test-source:
name: Test (source build)
2020-11-10 07:31:47 +11:00
runs-on: macos-latest
env:
2020-11-10 07:31:47 +11:00
DEVELOPER_DIR: /Applications/Xcode_12.1.app
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
2020-11-10 07:31:47 +11:00
command: build
test:
name: Test (pre-built)
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.1.app
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
2020-11-14 09:10:57 +11:00
- uses: actions-rs/cargo@v1
with:
command: build
args: --features pre-built