magic-nix-cache/.github/workflows/build.yaml
Graham Christensen 3597849148
Add an architecture prefix to the OS
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2023-05-22 15:45:55 -04:00

49 lines
1.1 KiB
YAML

name: Build artifacts
on:
workflow_dispatch:
workflow_call:
jobs:
build-artifacts-X64-macOS:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@main
- name: Print the arch-os
run: "echo $RUNNER_ARCH-$RUNNER_OS"
- name: Build package
run: "nix build .# -L"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: nix-actions-cache-X64-macOS
path: result/bin/nix-actions-cache
retention-days: 1
build-artifacts-X64-Linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@main
- name: Print the arch-os
run: "echo $RUNNER_ARCH-$RUNNER_OS"
- name: Build package
run: "nix build .# -L"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: nix-actions-cache-X64-Linux
path: result/bin/nix-actions-cache
retention-days: 1