mirror of https://github.com/zkat/cacache-rs.git
build: switch to actions-rs (#12)
This commit is contained in:
parent
38115599ca
commit
69d2ac7207
|
|
@ -8,19 +8,19 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rust: [beta, nightly]
|
rust: [beta, nightly]
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: hecrj/setup-rust-action@master
|
|
||||||
with:
|
|
||||||
rust-version: ${{ matrix.rust }}
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Add Clippy
|
- name: Install Rust
|
||||||
run: rustup component add clippy
|
uses: actions-rs/toolchain@v1
|
||||||
- name: Add Rustfmt
|
with:
|
||||||
run: rustup component add rustfmt
|
profile: minimal
|
||||||
- name: Build
|
toolchain: ${{ matrix.rust }}
|
||||||
run: cargo build --verbose
|
components: rustfmt, clippy
|
||||||
|
override: true
|
||||||
|
- name: Check
|
||||||
|
run: cargo check
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue