magic-nix-cache/.github/workflows/build.yaml
Graham Christensen 2b56c6586c
Update .github/workflows/build.yaml
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2023-05-22 16:08:32 -04:00

46 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: 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