This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
fix: update flake.lock #366
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nix Flake | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
self-care: | |
name: Flake self-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v5 | |
with: | |
fail-mode: true | |
config-tests: | |
name: "${{ matrix.os-name }} Nix Test" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
os-name: "Framework Laptop" | |
flake-attr: nixosConfigurations.framework.config.system.build.toplevel | |
- os: ubuntu-latest | |
os-name: "Nvidia Desktop" | |
flake-attr: nixosConfigurations.desktop.config.system.build.toplevel | |
- os: macos-latest | |
os-name: "macOS x86" | |
flake-attr: darwinConfigurations.macbook_x86.config.system.build.toplevel | |
- os: macos-14 | |
os-name: "macOS Apple Silicon" | |
flake-attr: darwinConfigurations.macbook.config.system.build.toplevel | |
steps: | |
- name: "Checkout Repo" | |
uses: actions/checkout@v4 | |
- name: "Install Nix" | |
uses: DeterminateSystems/nix-installer-action@v10 | |
- name: "Nix Cache" | |
uses: DeterminateSystems/magic-nix-cache-action@v4 | |
- name: "Test Nix config" | |
run: nix build --dry-run -L '.#${{ matrix.flake-attr }}' --show-trace | |