mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 21:31:30 +11:00
parent
fea270b0c9
commit
e3030ae381
39
.github/workflows/ci.yaml
vendored
39
.github/workflows/ci.yaml
vendored
|
@ -1,4 +1,9 @@
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
@ -7,28 +12,23 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
# make sure all code has been formatted with rustfmt
|
# make sure all code has been formatted with rustfmt
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fmt --all -- --check --color always
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check --color always
|
|
||||||
# run clippy to verify we have no warnings
|
# run clippy to verify we have no warnings
|
||||||
- run: rustup component add clippy
|
- run: rustup component add clippy
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fetch --target x86_64-apple-darwin
|
||||||
with:
|
- run: cargo clippy --features pre-built -- -D warnings
|
||||||
command: clippy
|
|
||||||
args: --features pre-built -- -D warnings
|
|
||||||
|
|
||||||
cargo-deny:
|
cargo-deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: EmbarkStudios/cargo-deny-action@v1
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
||||||
|
|
||||||
test-source:
|
test-source:
|
||||||
|
@ -37,14 +37,13 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fetch --target x86_64-apple-darwin
|
||||||
with:
|
- run: cargo build
|
||||||
command: build
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test (pre-built)
|
name: Test (pre-built)
|
||||||
|
@ -52,12 +51,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
DEVELOPER_DIR: /Applications/Xcode_12.1.app
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fetch --target x86_64-apple-darwin
|
||||||
with:
|
- run: cargo build --verbose --features pre-built
|
||||||
command: build
|
|
||||||
args: --verbose --features pre-built
|
|
||||||
|
|
Loading…
Reference in a new issue