Skip to content

Add ARM builds to CI #356

Add ARM builds to CI

Add ARM builds to CI #356

Workflow file for this run

name: Build fh artifacts
on:
workflow_call:
pull_request:
push:
branches: [main]
jobs:
build-artifacts-ARM64-macOS:
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: fh-ARM64-macOS
path: result/bin/fh
retention-days: 1
build-artifacts-X64-macOS:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: fh-X64-macOS
path: result/bin/fh
retention-days: 1
build-artifacts-X64-Linux:
runs-on: UbuntuLatest32Cores128G
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: fh-X64-Linux
path: result/bin/fh
retention-days: 1
build-artifacts-ARM64-Linux:
runs-on: namespace-profile-default-arm64
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: fh-ARM64-Linux
path: result/bin/fh
retention-days: 1