2024-02-09 15:01:25 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
kernel:
|
|
|
|
runs-on: local/aarch64-linux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: set home
|
|
|
|
run: |
|
|
|
|
echo "HOME=$PWD" >> "$GITHUB_ENV"
|
|
|
|
|
2024-02-09 19:38:34 +01:00
|
|
|
- name: build all
|
|
|
|
run: |
|
2024-02-26 16:03:46 +01:00
|
|
|
set -x
|
|
|
|
TARGETS=$(nix eval .#packages.aarch64-linux --apply 'builtins.attrNames' --json | jq '. | map(".#" + .) | join(" ")' -r)
|
|
|
|
OUTPUT=$(nix build --print-out-paths --keep-going $TARGETS)
|
2024-02-09 17:19:47 +01:00
|
|
|
echo $OUTPUT
|
2024-02-09 19:38:34 +01:00
|
|
|
echo "$OUTPUT" > build.out
|
2024-02-09 15:01:25 +01:00
|
|
|
|
|
|
|
- name: upload to cachix
|
|
|
|
run: |
|
2024-02-09 19:38:34 +01:00
|
|
|
cachix push nixos-x13s $(cat build.out)
|
2024-02-09 15:01:25 +01:00
|
|
|
env:
|
|
|
|
CACHIX_AUTH_TOKEN: '${{ secrets.CACHIX_TOKEN_X13S }}'
|