CI: fix win arm build (#12502)

Resolve subtle erroraction stickiness difference between x86 and arm builder setup
This commit is contained in:
Daniel Hiltgen
2025-10-04 11:46:45 -07:00
committed by GitHub
parent ae5e0f0889
commit 292767afb4

View File

@@ -214,11 +214,15 @@ jobs:
go-version-file: go.mod go-version-file: go.mod
- name: Verify gcc is actually clang - name: Verify gcc is actually clang
run: | run: |
gcc -v $ErrorActionPreference='Continue'
if (((& gcc -v 2>&1) -join "`n") -notmatch 'clang') { $version=& gcc -v 2>&1
$version=$version -join "`n"
echo "gcc is $version"
if ($version -notmatch 'clang') {
echo "ERROR: GCC must be clang for proper utf16 handling" echo "ERROR: GCC must be clang for proper utf16 handling"
exit 1 exit 1
} }
$ErrorActionPreference='Stop'
- run: | - run: |
go build -o dist/${{ matrix.os }}-${{ matrix.arch }}/ . go build -o dist/${{ matrix.os }}-${{ matrix.arch }}/ .
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4