Move cargo check to build-linux
This commit is contained in:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -8,26 +8,6 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- 1.42
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Run cargo check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -65,15 +45,14 @@ jobs:
|
||||
name: Build on Linux with Rust ${{ matrix.rust }}
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- check
|
||||
- fmt
|
||||
- clippy
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- 1.42
|
||||
- beta
|
||||
- nightly
|
||||
- 1.42 # MSRV
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
@@ -84,7 +63,11 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Install libsmbclient-dev & pkg-config
|
||||
run: sudo apt -y install libsmbclient-dev pkg-config
|
||||
- name: Build
|
||||
- name: Run cargo check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
- name: Run cargo build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build --verbose
|
||||
@@ -98,9 +81,8 @@ jobs:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- 1.42
|
||||
- beta
|
||||
- nightly
|
||||
- 1.42 # MSRV
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
|
||||
Reference in New Issue
Block a user