From e76943d10199865c60adb7db8df9f7e26b6a9b91 Mon Sep 17 00:00:00 2001 From: Maxim Reznik Date: Wed, 10 Jul 2024 11:36:54 +0300 Subject: [PATCH] Enable MacOS X M1 in nightly builds (#1716) --- .github/workflows/nightly.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a92a4662..8f0127dc 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -21,6 +21,7 @@ jobs: fail-fast: false # Attempt to generate as many of them as possible matrix: os: + - macos-14 - macos-12 - ubuntu-20.04 - windows-latest @@ -40,6 +41,16 @@ jobs: with: distrib: community + - name: Replace toolchain with aarch64 + if: ${{ runner.arch == 'ARM64' }} + run: | + curl -L https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-14.1.0-3/gnat-aarch64-darwin-14.1.0-3.tar.gz \ + | tar xzf - --strip-components=1 -C /Users/runner/work/alire/alire/alire_prefix + curl -L https://github.com/alire-project/GNAT-FSF-builds/releases/download/gprbuild-24.0.0-1/gprbuild-aarch64-darwin-24.0.0-1.tar.gz \ + | tar xzf - --strip-components=1 -C /Users/runner/work/alire/alire/alire_prefix + which gcc + gcc -v + - name: Install Python 3.x (required for the testsuite) uses: actions/setup-python@v2 with: @@ -81,10 +92,14 @@ jobs: if: startsWith(matrix.os, 'ubuntu') run: zip alr-nightly-bin-x86_64-linux.zip bin/alr* LICENSE.txt alr-*.txt - - name: Package binaries (macOS) - if: startsWith(matrix.os, 'macos') + - name: Package binaries (macOS/x64) + if: startsWith(matrix.os, 'macos') && runner.arch == 'X64' run: zip alr-nightly-bin-x86_64-macos.zip bin/alr* LICENSE.txt alr-*.txt + - name: Package binaries (macOS/arm64) + if: startsWith(matrix.os, 'macos') && runner.arch == 'ARM64' + run: zip alr-nightly-bin-aarch64-macos.zip bin/alr* LICENSE.txt alr-*.txt + # There's no zip on windows - name: Install zip (Windows) if: startsWith(matrix.os, 'windows') -- 2.39.5