-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
21 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,87 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
get-x86_64-hosts: | ||
runs-on: self-hosted-x86_64-linux | ||
outputs: | ||
matrix: ${{ steps.output-hosts.outputs.matrix }} | ||
steps: | ||
- name: repository checkout | ||
uses: actions/checkout@v4 | ||
- name: output-hosts | ||
run: | | ||
{ | ||
echo -n "matrix={\"include\":" | ||
nix eval -I nixpkgs=$(nix flake metadata nixpkgs --json | jq -r .path) --raw --impure --expr ' | ||
with import <nixpkgs> { }; | ||
builtins.toJSON (lib.mapAttrsToList (n: v: n) | ||
(lib.attrsets.filterAttrs (n: v: v.pkgs.system == pkgs.system) | ||
(builtins.getFlake(builtins.toString ./.)).outputs.nixosConfigurations))' | ||
echo "}" | ||
} > "$GITHUB_OUTPUT" | ||
cat ${GITHUB_OUTPUT} | ||
- name: verify-out | ||
run: echo ${{ steps.output-hosts.outputs.matrix }} | ||
|
||
get-aarch64-hosts: | ||
runs-on: self-hosted-aarch64-linux | ||
outputs: | ||
matrix: ${{ steps.output-hosts.outputs.matrix }} | ||
steps: | ||
- name: repository checkout | ||
uses: actions/checkout@v4 | ||
- name: output-hosts | ||
run: | | ||
{ | ||
echo -n "matrix={\"include\":" | ||
nix eval -I nixpkgs=$(nix flake metadata nixpkgs --json | jq -r .path) --raw --impure --expr ' | ||
with import <nixpkgs> { }; | ||
builtins.toJSON (lib.mapAttrsToList (n: v: n) | ||
(lib.attrsets.filterAttrs (n: v: v.pkgs.system == pkgs.system) | ||
(builtins.getFlake(builtins.toString ./.)).outputs.nixosConfigurations))' | ||
echo "}" | ||
} > "$GITHUB_OUTPUT" | ||
cat ${GITHUB_OUTPUT} | ||
- name: verify-out | ||
run: echo ${{ steps.output-hosts.outputs.matrix }} | ||
|
||
verify_outputs: | ||
runs-on: self-hosted-x86_64-linux | ||
needs: [get-x86_64-hosts, get-aarch64-hosts] | ||
steps: | ||
- name: check x86_64 output | ||
run: | | ||
echo "${{ needs.get-x86_64-hosts.outputs.matrix }}" | ||
- name: check aarch64 output | ||
run: | | ||
echo "${{ needs.get-aarch64-hosts.outputs.matrix }}" | ||
build-nixos-x86_64-linux: | ||
runs-on: self-hosted-x86_64-linux | ||
needs: [verify_outputs, get-x86_64-hosts] | ||
strategy: | ||
matrix: | ||
host: ${{ fromJson(needs.get-x86_64-hosts.outputs.matrix) }} | ||
steps: | ||
- name: repository checkout | ||
uses: actions/checkout@v4 | ||
- name: build host configuration ${{ matrix.host }} | ||
run: | | ||
nixos-rebuild build --verbose --flake ".#${{ matrix.host }}" | ||
build-nixos-aarch64-linux: | ||
runs-on: self-hosted-aarch64-linux | ||
needs: [verify_outputs, get-aarch64-hosts] | ||
strategy: | ||
matrix: | ||
host: ${{ fromJson(needs.get-aarch64-hosts.outputs.matrix) }} | ||
steps: | ||
- name: repository checkout | ||
uses: actions/checkout@v4 | ||
- name: build host configuration ${{ matrix.host }} | ||
run: | | ||
nixos-rebuild build --verbose --flake ".#${{ matrix.host }}" |
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,9 @@ | ||
age-encryption.org/v1 | ||
-> ssh-ed25519 kY4Rgg wXaqegoMDgK0MZ/QhwX7wIlHR4Y27IcPgeODG2Wubxk | ||
xHJC1iR0/nTLcZeYHkGWCnMzCjOFxPhmfdAbe76B6Oo | ||
-> ssh-ed25519 grc4Uw rKs94vbBfgXlKCv3qZBN8IPSxig5vWOOiJNqRC8yMkI | ||
8AE1kp25a2Nzv+07p9n3/vuy6LY5fPjEcf+sLRvU/Bg | ||
-> ssh-ed25519 DLT88w QP8cAQWsJJJSXUbnb/PJ9OGs5l4nifVyHQerDXcv0Bg | ||
dqoBSDTc6XdmOoirOv8/2hDfrGKm1pHaTO1D3m89K+I | ||
--- U/QEquparqU/juJuP85JQ9ttnBoypiYAtdCdsvWENZI | ||
�ne����T��";��������tމgS�.S_m5#`���!{��<����`p |