Skip to content

Commit

Permalink
ci: enable arm64 macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoup committed Oct 16, 2023
1 parent 35eb041 commit 43881f9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,13 @@ jobs:
macOS:
strategy:
matrix:
os: [{id: macos-12, label: "12/x86_64"}]
os:
- id: macos-12
label: "12/x86_64"
arch_triplet: x64-osx
- id: macos-13-xlarge
label: "13/arm64"
arch_triplet: arm64-osx
runs-on: ${{ matrix.os.id }}
name: macOS ${{ matrix.os.label }}

Expand All @@ -735,6 +741,7 @@ jobs:
env:
CCACHE_DIR: ${{ github.workspace }}/.cache/ccache
CCACHE_COMPRESS: "1"
ARCH_TRIPLET: ${{ matrix.os.arch_triplet }}
HOMEBREW_CACHE: ${{ github.workspace }}/.cache/brew
HOMEBREW_NO_INSTALL_CLEANUP: "1"
MACOS_CODESIGN_ID: ${{ secrets.MACOS_CODESIGN_ID }}
Expand Down Expand Up @@ -769,6 +776,10 @@ jobs:
python -V --version
echo /Library/Frameworks/Python.framework/Versions/${PY_VER}/bin >> $GITHUB_PATH
- uses: actions/setup-go@v4
with:
go-version: '^1.21.1'

- name: "setup: homebrew cache"
id: cache-brew
uses: actions/cache@v3
Expand All @@ -790,16 +801,16 @@ jobs:

- name: "setup: misc"
run: |
brew install -q autoconf automake ccache pandoc pkg-config
brew install -q autoconf automake ccache pandoc pkg-config libtool
mkdir -p ${{ env.CCACHE_DIR }}
echo "$(brew --prefix)/opt/ccache/libexec" >> $GITHUB_PATH
- name: "setup: vcpkg"
uses: lukka/run-vcpkg@v10
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: "${{ github.workspace }}/vcpkg-vendor/vcpkg"
vcpkgJsonGlob: "**/vcpkg-vendor/vcpkg.json"
prependedCacheKey: "20221110a"
prependedCacheKey: "20221110a-${{ runner.arch }}"
appendedCacheKey: "C${{ env.CMAKE_VERSION}}:${{ hashFiles('vcpkg-vendor/vcpkg-overlay-triplets/**', 'vcpkg-vendor/vcpkg-overlay-ports/**', 'vcpkg-vendor/vcpkg-toolchain-setup.cmake') }}"

#
Expand Down Expand Up @@ -959,7 +970,7 @@ jobs:
sudo installer -pkg build/dist/Kart-*.pkg -dumplog -target /
readlink $(which kart)
# make sure good sqlite is in path
export PATH="$(pwd)/build/vcpkg_installed/x64-osx/tools:$PATH"
export PATH="$(pwd)/build/vcpkg_installed/${{ env.ARCH_TRIPLET }}-osx/tools:$PATH"
tests/scripts/e2e-1.sh
- name: "release"
Expand Down

0 comments on commit 43881f9

Please sign in to comment.