mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 21:24:49 +02:00
github: move tests ci into check (#478)
Moves cargo test into the cargo check block.
This commit is contained in:
parent
655cb986a1
commit
3ba42fb0fc
53
.github/workflows/ci.yml
vendored
53
.github/workflows/ci.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-18.04
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
- windows-2019
|
- windows-2019
|
||||||
steps:
|
steps:
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-18.04
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
- windows-2019
|
- windows-2019
|
||||||
steps:
|
steps:
|
||||||
@ -56,36 +56,38 @@ jobs:
|
|||||||
|
|
||||||
- run: cargo clippy --all-targets --workspace -- -D warnings
|
- run: cargo clippy --all-targets --workspace -- -D warnings
|
||||||
|
|
||||||
# Compile/check test.
|
# Compile/check/test.
|
||||||
check:
|
check:
|
||||||
name: ${{ matrix.toolchain }} / ${{ matrix.triple.target }}
|
name: ${{ matrix.toolchain }} / ${{ matrix.triple.target }}
|
||||||
needs: [rustfmt, clippy]
|
needs: [rustfmt, clippy]
|
||||||
runs-on: ${{ matrix.triple.os }}
|
runs-on: ${{ matrix.triple.os }}
|
||||||
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
triple:
|
triple:
|
||||||
# Standard x86-64 stuff, stable
|
# Standard x86-64 stuff, stable
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "x86_64-unknown-linux-gnu",
|
target: "x86_64-unknown-linux-gnu",
|
||||||
cross: false,
|
cross: false,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
|
toTest: "true",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "i686-unknown-linux-gnu",
|
target: "i686-unknown-linux-gnu",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "x86_64-unknown-linux-musl",
|
target: "x86_64-unknown-linux-musl",
|
||||||
cross: false,
|
cross: false,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "i686-unknown-linux-musl",
|
target: "i686-unknown-linux-musl",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
@ -95,6 +97,7 @@ jobs:
|
|||||||
target: "x86_64-apple-darwin",
|
target: "x86_64-apple-darwin",
|
||||||
cross: false,
|
cross: false,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
|
toTest: "true",
|
||||||
}
|
}
|
||||||
# Disabled, unfortunately.
|
# Disabled, unfortunately.
|
||||||
# - {
|
# - {
|
||||||
@ -114,6 +117,7 @@ jobs:
|
|||||||
target: "x86_64-pc-windows-msvc",
|
target: "x86_64-pc-windows-msvc",
|
||||||
cross: false,
|
cross: false,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
|
toTest: "true",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "windows-2019",
|
os: "windows-2019",
|
||||||
@ -124,7 +128,7 @@ jobs:
|
|||||||
|
|
||||||
# aarch64
|
# aarch64
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "aarch64-unknown-linux-gnu",
|
target: "aarch64-unknown-linux-gnu",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
@ -132,7 +136,7 @@ jobs:
|
|||||||
|
|
||||||
# armv7
|
# armv7
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "armv7-unknown-linux-gnueabihf",
|
target: "armv7-unknown-linux-gnueabihf",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
@ -140,7 +144,7 @@ jobs:
|
|||||||
|
|
||||||
# armv6
|
# armv6
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "arm-unknown-linux-gnueabihf",
|
target: "arm-unknown-linux-gnueabihf",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
@ -148,7 +152,7 @@ jobs:
|
|||||||
|
|
||||||
# PowerPC 64 LE
|
# PowerPC 64 LE
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-latest",
|
||||||
target: "powerpc64le-unknown-linux-gnu",
|
target: "powerpc64le-unknown-linux-gnu",
|
||||||
cross: true,
|
cross: true,
|
||||||
rust: stable,
|
rust: stable,
|
||||||
@ -182,38 +186,15 @@ jobs:
|
|||||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features
|
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features
|
||||||
use-cross: ${{ matrix.triple.cross }}
|
use-cross: ${{ matrix.triple.cross }}
|
||||||
|
|
||||||
# Run tests on a subset of platforms
|
|
||||||
tests:
|
|
||||||
needs: [check]
|
|
||||||
name: Test ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-18.04
|
|
||||||
- macOS-latest
|
|
||||||
- windows-2019
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Install toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
if: matrix.triple.toTest == 'true'
|
||||||
run: cargo test --no-fail-fast
|
run: cargo test --no-fail-fast
|
||||||
env:
|
env:
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
|
|
||||||
complete:
|
complete:
|
||||||
needs: [tests]
|
needs: [check]
|
||||||
name: CI Pipeline Complete
|
name: CI Pipeline Complete
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user