mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 21:24:49 +02:00
ci: disable debug symbols and incremental in CI, force locked #719
Disables incremental compilation and debug symbols in CI and other related workflows, since they're not used there at all. Also forces --locked as needed.
This commit is contained in:
parent
a516104dec
commit
e646a76630
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -13,6 +13,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustfmt:
|
rustfmt:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -242,7 +246,7 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --features "battery"
|
args: --all-targets --verbose --target=${{ matrix.triple.target }} --features "battery" --locked
|
||||||
use-cross: ${{ matrix.triple.cross }}
|
use-cross: ${{ matrix.triple.cross }}
|
||||||
|
|
||||||
# Check without the battery feature enabled on x86-64 for supported operating systems
|
# Check without the battery feature enabled on x86-64 for supported operating systems
|
||||||
@ -304,7 +308,7 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features
|
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features --locked
|
||||||
use-cross: ${{ matrix.triple.cross }}
|
use-cross: ${{ matrix.triple.cross }}
|
||||||
|
|
||||||
# Run tests x86-64 for supported operating systems
|
# Run tests x86-64 for supported operating systems
|
||||||
@ -361,9 +365,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ matrix.triple.target }}
|
key: ${{ matrix.triple.target }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Build tests
|
||||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||||
run: cargo test --no-fail-fast
|
run: cargo test --no-run --locked
|
||||||
|
env:
|
||||||
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
|
RUST_BACKTRACE: full
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||||
|
run: cargo test --no-fail-fast -- --nocapture --quiet
|
||||||
env:
|
env:
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
|
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
4
.github/workflows/deployment.yml
vendored
4
.github/workflows/deployment.yml
vendored
@ -14,6 +14,10 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "[0-9]+.[0-9]+.[0-9]+"
|
- "[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
initialize-release-job:
|
initialize-release-job:
|
||||||
name: initialize-release-job
|
name: initialize-release-job
|
||||||
|
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@ -13,6 +13,10 @@ on:
|
|||||||
default: "mock"
|
default: "mock"
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
initialize-job:
|
initialize-job:
|
||||||
name: initialize-job
|
name: initialize-job
|
||||||
|
Loading…
x
Reference in New Issue
Block a user