From 34988af1cb03df36e4274d4d77d996b742f5e38b Mon Sep 17 00:00:00 2001 From: Michael Gissing Date: Mon, 9 Sep 2024 17:42:35 +0200 Subject: [PATCH] try native macos arm64 build --- .github/workflows/build-macos.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index aa8ad5d0..0aec403d 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -56,7 +56,7 @@ jobs: path: dist/* macos-arm64: - runs-on: macos-13 # macos-14 is arm64: https://github.com/actions/runner-images#available-images but not working + runs-on: macos-14 # macos-14 is arm64: https://github.com/actions/runner-images#available-images but not working strategy: fail-fast: false @@ -75,10 +75,10 @@ jobs: with: node-version: 20 - - name: Check arch is x64 # arm64 + - name: Check arch is arm64 # arm64 run: | - if [[ $(uname -m) != "x86_64" ]]; then - echo "This job should run on x64 architecture" + if [[ $(uname -m) != "arm64" ]]; then + echo "This job should run on arm64 architecture" exit 1 fi @@ -97,11 +97,6 @@ jobs: - run: yarn start --node-range node${{ matrix.target-node }} --arch arm64 --output dist env: MAKE_JOB_COUNT: 2 # prevent to run out of memory - # uncomment the following lines to build x64 - CC: clang -arch arm64 - CXX: clang++ -arch arm64 - CC_host: clang - CXX_host: clang++ - name: Check if binary is compiled id: check_file