Skip to content

Commit c38d336

Browse files
committed
fixup! .github/workflows/ci.yml: test Windows on ARM.
1 parent d3bb506 commit c38d336

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343
env | sort
4444
echo ---
4545
set
46-
echo ---
47-
go env || true
4846
4947
- name: Install Rust
5048
if: ${{ runner.os == 'Windows' }} && ${{ runner.arch == 'ARM64' }}
@@ -168,11 +166,13 @@ jobs:
168166
rm -rf ~/.cargo/registry/index/*/.cache
169167
170168
- name: Go
171-
if: ${{ runner.os != 'Windows' }} || ${{ runner.arch != 'ARM64' }}
172169
shell: bash
173170
run: |
174171
go version 2>/dev/null || exit 0
175-
if ! (grep -q -e '^flags.*\badx\b' /proc/cpuinfo) 2>/dev/null; then
172+
if [ $OSTYPE = "msys" -a $RUNNER_ARCH = "ARM64" ]; then
173+
export CC=clang
174+
export CGO_CFLAGS="-O --target=aarch64-w64-windows-gnu"
175+
elif ! (grep -q -e '^flags.*\badx\b' /proc/cpuinfo) 2>/dev/null; then
176176
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
177177
fi
178178
cd bindings/go

0 commit comments

Comments
 (0)