Skip to content

chore!: 2024-12-31 01:10:20 +0100 #4

chore!: 2024-12-31 01:10:20 +0100

chore!: 2024-12-31 01:10:20 +0100 #4

Workflow file for this run

---
name: Check
on: # yamllint disable-line rule:truthy
push:
permissions:
contents: read
jobs:
get-derivations:
runs-on: ubuntu-24.04
steps:
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- id: get-derivations
run: |
nix flake show --json \
github:${{
github.repository
}}/${{
github.event.pull_request.head.sha || github.sha
}} |
jq --compact-output --raw-output '
to_entries |
map(
.key as $type |
select($type == "checks" or $type == "packages") |
.value |
to_entries |
map(
.key as $arch |
select($arch == "x86_64-linux" or $arch == "x86_64-darwin") |
.value |
to_entries |
map(
{
arch: $arch,
key: .key,
os: (
if $arch == "x86_64-linux" then
"ubuntu-24.04"
else
"macos-14"
end
),
type: $type,
}
)
) |
flatten
) |
flatten |
"packages=\(.)"
' >> $GITHUB_OUTPUT
outputs:
packages: ${{ steps.get-derivations.outputs.packages }}
check:
runs-on: ${{ matrix.check.os }}
name: ${{ matrix.check.key }} on ${{ matrix.check.arch }}
needs: get-derivations
strategy:
fail-fast: false
matrix:
check: ${{ fromJSON(needs.get-derivations.outputs.packages) }}
steps:
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: |
nix build --no-update-lock-file --print-build-logs \
github:${{
github.repository
}}/${{
github.event.pull_request.head.sha || github.sha
}}#${{
matrix.check.type
}}.${{
matrix.check.arch
}}.${{
matrix.check.key
}}