From b86600c0e72b830657a0fd7d932ae9108acada55 Mon Sep 17 00:00:00 2001 From: Maxim Reznik Date: Tue, 9 Jul 2024 18:36:57 +0300 Subject: [PATCH] Try MacOS X M1 --- .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 6ac6231c1..aed0ac995 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 @@ -36,6 +37,16 @@ jobs: with: crates: gnat_native gprbuild + - 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: @@ -77,10 +88,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')