nixos-x13s/.forgejo/workflows/build.yaml
Adam Stephens f48f5123e0
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e92b6015881907e698782c77641aa49298330223' (2024-02-02)
  → 'github:NixOS/nixpkgs/f8e2ebd66d097614d51a56a755450d4ae1632df1' (2024-02-07)
2024-02-09 11:21:01 -05:00

37 lines
900 B
YAML

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"
- run: |
OUTPUT=$(nix build .#x13s/linux --print-out-paths)
echo $OUTPUT
echo "build_output=$OUTPUT" >> "$GITHUB_ENV"
- name: upload to cachix
run: |
cachix push nixos-x13s $build_output
env:
CACHIX_AUTH_TOKEN: '${{ secrets.CACHIX_TOKEN_X13S }}'
- name: upload to attic
run: |
attic login --set-default $ATTIC_CACHE $ATTIC_ENDPOINT $ATTIC_TOKEN
attic use $ATTIC_CACHE
attic push $ATTIC_CACHE $build_output
env:
ATTIC_ENDPOINT: ${{ vars.ATTIC_ENDPOINT }}
ATTIC_CACHE: ${{ vars.ATTIC_CACHE }}
ATTIC_TOKEN: ${{ secrets.ATTIC_KEY }}