mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-08-18 08:08:22 +02:00
30 lines
658 B
YAML
30 lines
658 B
YAML
name: Nix Flake
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "README.md"
|
|
- ".gitignore"
|
|
- "LICENSE"
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-nix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: "Install Nix ❄️"
|
|
uses: nixbuild/nix-quick-install-action@v30
|
|
|
|
- name: "Nix Cache ❄️"
|
|
uses: nix-community/cache-nix-action@v6
|
|
with:
|
|
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
|
|
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
|
|
|
|
- name: "Build Nix Flake ❄️"
|
|
run: nix build
|
|
|
|
|