πŸš€ ci: fix zig install condition β€” GitHub bool/string equality gotcha (matrix.zig == true || == 'true')

swadhinbiswas committed 2 months ago
51015a2
1 parent 7746001
commit 51015a2
1 file changed
+5 -1
Showing 1 changed file+5-1
β–Ό.github/workflows/wheels.yml
+5-1
108
108
uv tool install maturin
109
109
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
110
110
- name: Install Zig (for cross-compilation)
111
- if: matrix.zig == 'true'
111
+ # matrix.zig is a YAML boolean, which GitHub's == does not coerce
112
+ # against the string 'true' β€” accept both forms so the step always
113
+ # runs when zig is needed (the bash build step compares the
114
+ # interpolated value, which is always the string "true").
115
+ if: matrix.zig == true || matrix.zig == 'true'
112
116
uses: mlugg/setup-zig@v1
113
117
with:
114
118
# Matches the zig version verified locally (all 5 wheels built with
115
119