Skip to content

Commit 646fe75

Browse files
committed
Don't use --all-targets when testing MSRV
1 parent 44a0fae commit 646fe75

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/actions/build/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ inputs:
2121
required: false
2222
default: -D warnings
2323

24+
TARGETS:
25+
description: 'Build all targets or only default?'
26+
required: false
27+
default: "--all-targets"
28+
2429
TOOL:
2530
description: 'Tool used to involve the BUILD command, can be cargo or cross'
2631
required: false
@@ -62,7 +67,7 @@ runs:
6267
6368
- name: build
6469
shell: bash
65-
run: ${{ inputs.TOOL }} ${{ inputs.BUILD }} ${{ inputs.ZFLAGS }} --target ${{ inputs.TARGET }} --all-targets --all-features
70+
run: ${{ inputs.TOOL }} ${{ inputs.BUILD }} ${{ inputs.ZFLAGS }} --target ${{ inputs.TARGET }} ${{ inputs.TARGETS }} --all-features
6671

6772
- name: doc
6873
if: inputs.NODOC == 'false'

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ jobs:
276276
NOCLIPPY: true
277277
NODOC: true
278278
NOHACK: true
279+
TARGETS: ""
279280
strategy:
280281
fail-fast: false
281282
matrix:
@@ -302,10 +303,11 @@ jobs:
302303
uses: ./.github/actions/build
303304
with:
304305
TARGET: '${{ matrix.target }}'
306+
TARGETS: '${{ env.TARGETS }}'
305307
BUILD: '${{ env.BUILD }}'
306-
NOCLIPPY: '${{ matrix.NOCLIPPY }}'
307-
NODOC: '${{ matrix.NODOC }}'
308-
NOHACK: '${{ matrix.NOHACK }}'
308+
NOCLIPPY: '${{ env.NOCLIPPY }}'
309+
NODOC: '${{ env.NODOC }}'
310+
NOHACK: '${{ env.NOHACK }}'
309311

310312
- name: before_cache_script
311313
run: rm -rf $CARGO_HOME/registry/index

0 commit comments

Comments
 (0)