Skip to content

Commit 306eb2a

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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: 2 additions & 1 deletion
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:
@@ -301,7 +302,7 @@ jobs:
301302
- name: build
302303
uses: ./.github/actions/build
303304
with:
304-
TARGET: '${{ matrix.target }}'
305+
TARGETS: '${{ matrix.TARGETS }}'
305306
BUILD: '${{ env.BUILD }}'
306307
NOCLIPPY: '${{ matrix.NOCLIPPY }}'
307308
NODOC: '${{ matrix.NODOC }}'

0 commit comments

Comments
 (0)