nixos-config/.github/workflows/build-packages.yml

37 lines
871 B
YAML
Raw Normal View History

2025-01-20 13:10:07 -05:00
name: build and cache packages
on:
workflow_dispatch:
2025-01-20 21:00:49 -05:00
inputs:
package:
description: "package to build"
required: false
type: string
2025-01-20 13:10:07 -05:00
jobs:
build-packages:
strategy:
matrix:
package:
2025-01-20 21:00:49 -05:00
- ${{ inputs.package }}
2025-01-20 13:10:07 -05:00
os:
- ubuntu-latest
- macos-latest
- ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
steps:
- name: Install Nix
uses: cachix/install-nix-action@v30
2025-01-20 13:10:07 -05:00
- name: Sync repository
uses: actions/checkout@v4
with:
persist-credentials: false
2025-01-20 13:10:07 -05:00
- uses: cachix/cachix-action@v14
with:
name: cything
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
useDaemon: false
installCommand: nix profile install nixpkgs#cachix
2025-01-20 13:10:07 -05:00
- run: nix build -L ${{ matrix.package }}