diff options
author | Ayke van Laethem <[email protected]> | 2023-10-03 13:39:24 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2023-10-03 13:54:09 +0200 |
commit | 2e5904a7cd1b4e6cfd1e9739f35372c5bd2c97d9 (patch) | |
tree | 7fcd39ecfd921bd0715ae8ce4668f34801187dea | |
parent | 1da1abe3147796aa56a5486ed6f07afdd88d8234 (diff) | |
download | tinygo-ci-macos-arm64.tar.gz tinygo-ci-macos-arm64.zip |
ci: add MacOS arm64 runnerci-macos-arm64
See this post:
https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/
-rw-r--r-- | .github/workflows/build-macos.yml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 1284a4edd..89d336de4 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -14,7 +14,15 @@ concurrency: jobs: build-macos: name: build-macos - runs-on: macos-11 + strategy: + matrix: + host: [ macos-11, macos-13-xlarge ] + include: + - host: macos-11 + goarch: amd64 + - host: macos-13-xlarge + goarch: arm64 + runs-on: ${{ matrix.host }} steps: - name: Install Dependencies shell: bash @@ -58,7 +66,7 @@ jobs: uses: actions/cache/restore@v3 id: cache-llvm-build with: - key: llvm-build-16-macos-v1 + key: llvm-build-16-${{ matrix.host }}-v1 path: llvm-build - name: Build LLVM if: steps.cache-llvm-build.outputs.cache-hit != 'true' @@ -82,7 +90,7 @@ jobs: uses: actions/cache@v3 id: cache-wasi-libc with: - key: wasi-libc-sysroot-v4 + key: wasi-libc-sysroot-${{ matrix.host }}-v1 path: lib/wasi-libc/sysroot - name: Build wasi-libc if: steps.cache-wasi-libc.outputs.cache-hit != 'true' @@ -98,7 +106,7 @@ jobs: run: make tinygo-test - name: Make release artifact shell: bash - run: cp -p build/release.tar.gz build/tinygo.darwin-amd64.tar.gz + run: cp -p build/release.tar.gz build/tinygo.darwin-${{ matrix.goarch }}.tar.gz - name: Publish release artifact # Note: this release artifact is double-zipped, see: # https://github.com/actions/upload-artifact/issues/39 @@ -108,14 +116,17 @@ jobs: # We're doing the former here, to keep artifact uploads fast. uses: actions/upload-artifact@v2 with: - name: darwin-amd64-double-zipped - path: build/tinygo.darwin-amd64.tar.gz + name: darwin-${{ matrix.goarch }}-double-zipped + path: build/tinygo.darwin-${{ matrix.goarch }}.tar.gz - name: Smoke tests shell: bash run: make smoketest TINYGO=$(PWD)/build/tinygo test-macos-homebrew: name: homebrew-install - runs-on: macos-latest + strategy: + matrix: + host: [ macos-latest, macos-13-xlarge ] + runs-on: ${{ matrix.host }} steps: - name: Install LLVM shell: bash |