Skip to content

Commit b34fbe2

Browse files
Copilotlmangani
andcommitted
Simplify per-platform skip logic using per-entry exclude field
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
1 parent 3b24a39 commit b34fbe2

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ jobs:
3232
build:
3333
name: Build · ${{ matrix.name }}
3434
runs-on: ${{ matrix.os }}
35-
if: >-
36-
github.event_name != 'workflow_dispatch'
37-
|| (
38-
(matrix.dispatch_skip_input != 'skip_linux' || !fromJSON(inputs.skip_linux))
39-
&& (matrix.dispatch_skip_input != 'skip_mac' || !fromJSON(inputs.skip_mac))
40-
&& (matrix.dispatch_skip_input != 'skip_windows' || !fromJSON(inputs.skip_windows))
41-
)
35+
if: ${{ !matrix.exclude }}
4236
strategy:
4337
fail-fast: false
4438
matrix:
@@ -49,15 +43,15 @@ jobs:
4943
apt_extra: pkg-config libopenblas-dev
5044
install_cuda: true
5145
install_vulkan: true
52-
dispatch_skip_input: skip_linux
46+
exclude: ${{ inputs.skip_linux || false }}
5347
- name: macos-arm64-metal
5448
os: macos-latest
55-
dispatch_skip_input: skip_mac
49+
exclude: ${{ inputs.skip_mac || false }}
5650
- name: windows-x64
5751
os: windows-latest
5852
install_cuda: true
5953
install_vulkan: true
60-
dispatch_skip_input: skip_windows
54+
exclude: ${{ inputs.skip_windows || false }}
6155

6256
steps:
6357
- name: Checkout

0 commit comments

Comments
 (0)