magic-nix-cache/.github/workflows/build.yaml

26 lines
572 B
YAML

name: Build artifacts
on:
pull_request:
push:
workflow_dispatch:
jobs:
flake-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@main
- name: "Build something"
run: "nix develop -c cargo build --release"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: nix-actions-cache-x86_64-linux
path: target/release/nix-actions-cache
retention-days: 1