File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff 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
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'
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments