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

43 lines
1,003 B
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: 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