Skip to content

Commit

Permalink
Try MacOS X M1
Browse files Browse the repository at this point in the history
  • Loading branch information
reznikmm committed Jul 9, 2024
1 parent 81cc600 commit b86600c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit b86600c

Please sign in to comment.