Always run CI checks with the default features

when matrix_all_combinations is false, previously we would run all CI
with the features disabled and then have 1 run for each with it
enabled

now, they are always enabled, and we add 1 run that disable 1 of them

when matrix_all_combinations is true this doesn't change the fact that
we'll test all combinations
This commit is contained in:
João Marcos 2025-04-18 15:14:46 -03:00
parent db9340fd00
commit 0aca6ff262

View File

@ -37,9 +37,9 @@ jobs:
strategy:
fail-fast: false
matrix:
feature-unrar: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[false]')}}
feature-use-zlib: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[false]')}}
feature-use-zstd-thin: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[false]')}}
feature-unrar: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[true]')}}
feature-use-zlib: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[true]')}}
feature-use-zstd-thin: ${{ inputs.matrix_all_combinations && fromJSON('[true, false]') || fromJSON('[true]')}}
target:
# native
- x86_64-unknown-linux-gnu
@ -75,12 +75,12 @@ jobs:
use-cross: true
- target: armv7-unknown-linux-musleabihf
use-cross: true
# features (unless `matrix_all_combinations` is true, we only run these on linux-gnu)
- feature-unrar: true
# features (unless `matrix_all_combinations` is true, we'll only run with these disabled on linux-gnu)
- feature-unrar: false
target: x86_64-unknown-linux-gnu
- feature-use-zlib: true
- feature-use-zlib: false
target: x86_64-unknown-linux-gnu
- feature-use-zstd-thin: true
- feature-use-zstd-thin: false
target: x86_64-unknown-linux-gnu
steps: