-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: add separate validate flakes step
- Loading branch information
1 parent
64b1f0b
commit dff0b10
Showing
10 changed files
with
85 additions
and
15 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
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
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
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,31 @@ | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
system = aarch64-linux | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Setup aarch64-linux | ||
run: | | ||
DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update -q -y | ||
sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
authToken: ${{ secrets.CACHIX_TOKEN }} | ||
extraPullNames: nix-community | ||
name: thiagokokada-nix-configs | ||
- name: Set default git branch (to reduce log spam) | ||
run: git config --global init.defaultBranch master | ||
- name: Check if all `.nix` files are formatted correctly | ||
run: nix run '.#formatCheck' | ||
- name: Validate Flakes | ||
run: nix flake check | ||
name: validate-flakes | ||
"on": | ||
- push | ||
- workflow_dispatch |
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
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
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
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
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,27 @@ | ||
let | ||
steps = import ./steps.nix; | ||
constants = import ./constants.nix; | ||
in | ||
with constants; | ||
{ | ||
name = "validate-flakes"; | ||
on = [ "push" "workflow_dispatch" ]; | ||
jobs = { | ||
build-linux = { | ||
inherit (ubuntu) runs-on; | ||
steps = with steps; [ | ||
checkoutStep | ||
(installNixActionStep { | ||
extraNixConfig = '' | ||
system = aarch64-linux | ||
''; | ||
}) | ||
setupAarch64 | ||
cachixActionStep | ||
setDefaultGitBranchStep | ||
checkNixStep | ||
validateFlakesStep | ||
]; | ||
}; | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -179,6 +179,7 @@ | |
"build-and-cache" | ||
"update-flakes" | ||
"update-flakes-darwin" | ||
"validate-flakes" | ||
]) | ||
]); # END recursiveMergeAttrs | ||
} |