Merge pull request #33 from DeterminateSystems/hoverbear/fh-40-publish-binaries-for-arm64-darwin

Enable aarch64 macOS builds
This commit is contained in:
Ana Hobden 2023-11-09 08:03:02 -08:00 committed by GitHub
commit 7dc018b8c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 0 deletions

View file

@ -5,6 +5,29 @@ on:
workflow_call:
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:
concurrency: build-X64-macOS
runs-on: macos-12

View file

@ -31,6 +31,13 @@ jobs:
- name: Create the artifacts directory
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
with:
name: magic-nix-cache-X64-macOS

View file

@ -35,6 +35,13 @@ jobs:
- name: Create the artifacts directory
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
with:
name: magic-nix-cache-X64-macOS

View file

@ -24,6 +24,13 @@ jobs:
- name: Create the artifacts directory
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
with:
name: magic-nix-cache-X64-macOS