From f28944e8dfd3adc6334d497c3de02131429580c2 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 5 Sep 2024 23:32:47 -0700 Subject: [PATCH] ci: use Arm runner for MacOS arm --- .github/workflows/CI.yml | 38 +++++++------------------------------- .gitmodules | 4 ++-- 2 files changed, 9 insertions(+), 33 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3c87bbe..dd7b0d9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,9 +12,9 @@ jobs: matrix: os: - windows-latest - - macos-13 - ubuntu-latest - # - macos-11 # arm64 + - macos-13 # x86 + - macos-14 # arm64 d: - "ldc-latest" node: @@ -57,35 +57,6 @@ jobs: with: compiler: ${{ matrix.d }} - - name: Setup Mac Arm64 - shell: bash - if: contains(matrix.os, 'macos-13') - run: | - ARCH="arm64" - echo "ARCH=$ARCH" >> $GITHUB_ENV - echo "triple=$ARCH-apple-macos" >> $GITHUB_ENV - echo "DFLAGS='-mtriple=$triple -Xcc=target -Xcc=$ARCH-apple-macos'" >> $GITHUB_ENV - echo "CPPFLAGS=$CPPFLAGS -arch $ARCH" >> $GITHUB_ENV - echo "CFLAGS=$CFLAGS -arch $ARCH" >> $GITHUB_ENV - echo "LDFLAGS=$LDFLAGS -arch $ARCH" >> $GITHUB_ENV - - # Manually install ldc - # Due to https://github.com/dlang-community/setup-dlang/issues/51 - curl -LJO https://github.com/ldc-developers/ldc/releases/download/v1.28.0/ldc2-1.28.0-osx-$ARCH.tar.xz - tar -xf ldc2-1.28.0-osx-$ARCH.tar.xz - rm ldc2-1.28.0-osx-$ARCH.tar.xz - - LDC_PATH="~/ldc" - mkdir -p $LDC_PATH - mv ldc2-1.28.0-osx-$ARCH $LDC_PATH - - # Activate ldc - echo "LIBRARY_PATH=$LDC_PATH/lib${LIBRARY_PATH:+:}${LIBRARY_PATH:-}" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$LDC_PATH/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV - echo "PATH=$LDC_PATH/bin${PATH:+:}${PATH:-}" >> $GITHUB_ENV - echo "DMD=ldmd2" >> $GITHUB_ENV - echo "DC=ldc2" >> $GITHUB_ENV - - name: Setup Node uses: actions/setup-node@v4 with: @@ -104,6 +75,11 @@ jobs: - name: Build run: pnpm build.node + - name: Inspect Despacer + if: always() + shell: bash + run: ls ./despacer/build + - name: Test run: pnpm test diff --git a/.gitmodules b/.gitmodules index 6aac511..5adf30d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "despacer"] path = despacer - url = https://github.com/aminya/despacer.git - branch = fix-dub + url = https://github.com/lemire/despacer.git + branch = master