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
|
@ -13,6 +13,10 @@ on:
|
|||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_PROFILE_DEV_DEBUG: 0
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
@ -242,7 +246,7 @@ jobs:
|
|||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
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 }}
|
||||
|
||||
# Check without the battery feature enabled on x86-64 for supported operating systems
|
||||
|
@ -304,7 +308,7 @@ jobs:
|
|||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
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 }}
|
||||
|
||||
# Run tests x86-64 for supported operating systems
|
||||
|
@ -361,9 +365,16 @@ jobs:
|
|||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
|
||||
- name: Run tests
|
||||
- name: Build tests
|
||||
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:
|
||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||
RUST_BACKTRACE: full
|
||||
|
|
|
@ -9,6 +9,9 @@ on:
|
|||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
|
||||
jobs:
|
||||
pre_job:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -14,6 +14,10 @@ on:
|
|||
tags:
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_PROFILE_DEV_DEBUG: 0
|
||||
|
||||
jobs:
|
||||
initialize-release-job:
|
||||
name: initialize-release-job
|
||||
|
|
|
@ -13,6 +13,10 @@ on:
|
|||
default: "mock"
|
||||
required: false
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_PROFILE_DEV_DEBUG: 0
|
||||
|
||||
jobs:
|
||||
initialize-job:
|
||||
name: initialize-job
|
||||
|
|
Loading…
Reference in New Issue