Skip to content

Commit

Permalink
fix: retry with cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 5, 2024
1 parent 3a947a7 commit 4821402
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
path: dist/*

macos-arm64:
runs-on: macos-14 # macos-14 is arm64: https://github.com/actions/runner-images#available-images
runs-on: macos-13 # macos-14 is arm64: https://github.com/actions/runner-images#available-images but not working

strategy:
fail-fast: false
Expand All @@ -75,10 +75,10 @@ jobs:
with:
node-version: 18

- name: Check arch is arm64
- name: Check arch is x64 # arm64
run: |
if [[ $(uname -m) != "arm64" ]]; then
echo "This job should run on arm64 architecture"
if [[ $(uname -m) != "x86_64" ]]; then
echo "This job should run on x64 architecture"
exit 1
fi
Expand All @@ -94,11 +94,10 @@ jobs:
env:
MAKE_JOB_COUNT: 2 # prevent to run out of memory
# uncomment the following lines to build x64
# env:
# CC: clang -arch arm64
# CXX: clang++ -arch arm64
# CC_host: clang
# CXX_host: clang++
CC: clang -arch arm64
CXX: clang++ -arch arm64
CC_host: clang
CXX_host: clang++

- name: Check if binary is compiled
id: check_file
Expand Down

0 comments on commit 4821402

Please sign in to comment.