-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NixOS configuration build workflows
- Loading branch information
Showing
4 changed files
with
70 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build NixOS configuration | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
- name: Check flake.lock file | ||
uses: DeterminateSystems/flake-checker-action@main | ||
- name: Install nix and flakes | ||
uses: DeterminateSystems/nix-installer-action@main | ||
- name: Use magic nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Use cachix nix cache | ||
uses: cachix/cachix-action@master | ||
with: | ||
name: nichijou | ||
extraPullNames: colmena,cuda-maintainers,hyprland,nix-community,nixpkgs-wayland,numtide,nrdxp | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
- name: Build devshell | ||
run: nix develop --command "echo 'Hello, world!'" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Build hakase configuration | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-workflow-passing-data: | ||
uses: ./.github/workflows/build-nixos.yaml | ||
with: | ||
configuration: hakase | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build NixOS configuration | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
configuration: | ||
required: true | ||
type: string | ||
secrets: | ||
CACHIX_AUTH_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
- name: Check flake.lock file | ||
uses: DeterminateSystems/flake-checker-action@main | ||
- name: Install nix and flakes | ||
uses: DeterminateSystems/nix-installer-action@main | ||
- name: Use magic nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Use cachix nix cache | ||
uses: cachix/cachix-action@master | ||
with: | ||
name: nichijou | ||
extraPullNames: colmena,cuda-maintainers,hyprland,nix-community,nixpkgs-wayland,numtide,nrdxp | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
- name: Build system configuration | ||
run: nix build ".#nixosConfigurations.${{ inputs.configuration }}.config.system.build.toplevel" |
This file was deleted.
Oops, something went wrong.