Enable aarch64 macOS builds

This commit is contained in:
Ana Hobden 2023-11-08 11:13:54 -08:00
parent a2eb0c6759
commit c3793c701d
4 changed files with 44 additions and 0 deletions

View file

@ -5,6 +5,29 @@ on:
workflow_call: workflow_call:
jobs: jobs:
build-artifacts-ARM64-macOS:
concurrency: build-ARM64-macOS
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: "nix build .# -L --fallback"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: magic-nix-cache-ARM64-macOS
path: result/bin/magic-nix-cache
retention-days: 1
build-artifacts-X64-macOS: build-artifacts-X64-macOS:
concurrency: build-X64-macOS concurrency: build-X64-macOS
runs-on: macos-12 runs-on: macos-12

View file

@ -31,6 +31,13 @@ jobs:
- name: Create the artifacts directory - name: Create the artifacts directory
run: rm -rf ./artifacts && mkdir ./artifacts run: rm -rf ./artifacts && mkdir ./artifacts
- uses: actions/download-artifact@v3
with:
name: magic-nix-cache-ARM64-macOS
path: cache-binary-ARM64-macOS
- name: Persist the cache binary
run: cp ./cache-binary-ARM64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-ARM64-macOS
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: magic-nix-cache-X64-macOS name: magic-nix-cache-X64-macOS

View file

@ -35,6 +35,13 @@ jobs:
- name: Create the artifacts directory - name: Create the artifacts directory
run: rm -rf ./artifacts && mkdir ./artifacts run: rm -rf ./artifacts && mkdir ./artifacts
- uses: actions/download-artifact@v3
with:
name: magic-nix-cache-ARM64-macOS
path: cache-binary-ARM64-macOS
- name: Persist the cache binary
run: cp ./cache-binary-ARM64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-ARM64-macOS
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: magic-nix-cache-X64-macOS name: magic-nix-cache-X64-macOS

View file

@ -24,6 +24,13 @@ jobs:
- name: Create the artifacts directory - name: Create the artifacts directory
run: rm -rf ./artifacts && mkdir ./artifacts run: rm -rf ./artifacts && mkdir ./artifacts
- uses: actions/download-artifact@v3
with:
name: magic-nix-cache-ARM64-macOS
path: cache-binary-ARM64-macOS
- name: Persist the cache binary
run: cp ./cache-binary-ARM64-macOS/magic-nix-cache ./artifacts/magic-nix-cache-ARM64-macOS
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: magic-nix-cache-X64-macOS name: magic-nix-cache-X64-macOS