Skip to content

Commit e5a7635

Browse files
committed
Allow to skip some platforms.
1 parent 11e3646 commit e5a7635

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/test-suite.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,25 @@ jobs:
9696
continue-on-error: true # Win arm64 is not a priority for now, docker may fail sometimes.
9797
runs-on: ${{ matrix.os }}
9898
needs: [ client-ssh-key ]
99-
if: ${{ !contains(inputs.skip-platforms, matrix.platform) }}
10099
continue-on-error: ${{ matrix.continue-on-error || false }}
101100
defaults:
102101
run:
103102
shell: bash
104103
steps:
104+
- name: ⏭️ Check if platform should be skipped
105+
id: should-skip
106+
run: |
107+
SKIP_PLATFORMS="${{ inputs.skip-platforms }}"
108+
CURRENT_PLATFORM="${{ matrix.platform }}"
109+
110+
if [[ " $SKIP_PLATFORMS " == *" $CURRENT_PLATFORM "* ]]; then
111+
echo "⏭️ Skipping platform: $CURRENT_PLATFORM"
112+
echo "skip=true" >> $GITHUB_OUTPUT
113+
else
114+
echo "✅ Running tests for platform: $CURRENT_PLATFORM"
115+
echo "skip=false" >> $GITHUB_OUTPUT
116+
fi
117+
105118
- name: 📥 Checkout code
106119
uses: actions/checkout@v4
107120

0 commit comments

Comments
 (0)