-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/money-with-wings' into cfgif-money
- Loading branch information
Showing
3 changed files
with
99 additions
and
9 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,35 @@ | ||
#!/bin/sh | ||
|
||
nix flake show --json --all-systems \ | ||
| nix run nixpkgs#gron -- -j \ | ||
| nix run nixpkgs#jq -- -r \ | ||
--slurp \ | ||
--argjson map ' | ||
{ | ||
"aarch64-darwin": "macos-latest", | ||
"x86_64-darwin": "macos-latest", | ||
"x86_64-linux": "UbuntuLatest32Cores128G", | ||
"aarch64-linux": "UbuntuLatest32Cores128GArm", | ||
"i686-linux": "UbuntuLatest32Cores128G" | ||
} | ||
' \ | ||
' | ||
map(select(.[0][-1] == "type" and .[1] == "derivation") | ||
| .[0][0:-1] # Take each attribute name and drop `type` | ||
| select(.[0:3] != ["hydraJobs", "vm-test", "all"]) # Skip the hydraJobs.vm-test.all jobs, which aggregate other jobs | ||
| select(.[0:3] != ["hydraJobs", "container-test", "all"]) # Skip the hydraJobs.container-test.all jobs, which aggregate other jobs | ||
| select(.[-1] != "all") # Skip attributes which are `all` jobs, presumably combining other jobs | ||
| select(.[-1] | endswith("-aggregate") != true) # Skip attributes which end in `-aggregate`, because those just depend on other jobs which build them | ||
| select(.[0] == "hydraJobs") # Select the hydraJobs which are not typically run in CI | ||
| { | ||
attribute: . | join("."), | ||
"nix-system": .[-2], | ||
"runs-on": $map[.[-2]] | ||
} | ||
| if ."runs-on" == null then | ||
("No GitHub Actions Runner system known for the Nix system `" + ."nix-system" + "` on attribute `" + .attribute + "`.\n") | halt_error(1) | ||
else | ||
. | ||
end) | ||
| "matrix=" + tostring | ||
' >> "$GITHUB_OUTPUT" |
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,55 @@ | ||
name: Extensive Release Checks | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- money-with-wings | ||
|
||
jobs: | ||
inventory: | ||
name: Identify outputs to build | ||
runs-on: UbuntuLatest32Cores128G | ||
outputs: | ||
matrix: ${{ steps.inventory.outputs.matrix }} | ||
permissions: | ||
id-token: "write" | ||
contents: "read" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
with: | ||
flakehub: true | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Enumerate Checks | ||
id: inventory | ||
run: | | ||
./.github/workflows/matrix.sh | ||
build: | ||
runs-on: ${{ matrix.jobs.runs-on }} | ||
needs: inventory | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jobs: ${{ fromJSON(needs.inventory.outputs.matrix) }} | ||
|
||
permissions: | ||
id-token: "write" | ||
contents: "read" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
with: | ||
flakehub: true | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Build for ${{ matrix.jobs.nix-system }} | ||
run: nix build .#${{ matrix.jobs.attribute }} | ||
|
||
success: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- run: "true" |
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