mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-24 16:04:51 +01:00
add forgejo builder
This commit is contained in:
parent
e612b7c968
commit
43d7cc6b02
35
.forgejo/workflows/build.yaml
Normal file
35
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
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 "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 }}
|
Loading…
Reference in a new issue