Merge pull request #33 from DeterminateSystems/hoverbear/fh-40-publish-binaries-for-arm64-darwin
Enable aarch64 macOS builds
This commit is contained in:
commit
7dc018b8c8
23
.github/workflows/build.yaml
vendored
23
.github/workflows/build.yaml
vendored
|
@ -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
|
||||||
|
|
7
.github/workflows/release-branches.yml
vendored
7
.github/workflows/release-branches.yml
vendored
|
@ -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
|
||||||
|
|
7
.github/workflows/release-prs.yml
vendored
7
.github/workflows/release-prs.yml
vendored
|
@ -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
|
||||||
|
|
7
.github/workflows/release-tags.yml
vendored
7
.github/workflows/release-tags.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue