1
0
Fork 0
nix-overlay/.forgejo/workflows/build.yml

89 lines
3.4 KiB
YAML
Raw Normal View History

2022-08-05 20:38:23 +00:00
name: Build
on:
push:
branches: ['master']
2023-12-02 11:54:33 +00:00
schedule:
- cron: '20 2 * * *'
2022-08-05 20:38:23 +00:00
jobs:
2023-09-16 15:43:50 +00:00
build-amd64-linux:
2023-12-05 20:20:06 +00:00
runs-on: nix-amd64
2023-09-16 15:43:50 +00:00
2022-08-05 20:42:50 +00:00
steps:
2023-12-03 12:36:06 +00:00
- uses: actions/checkout@v4
with:
ref: master
2023-12-05 20:20:06 +00:00
- name: Cache Login
run: |
echo "Logging in ..."
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
2023-12-05 22:03:00 +00:00
- name: Build anonymous-overflow
run: |
2023-12-05 20:20:06 +00:00
nix build '.#anonymous-overflow'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build bulk-downloader-for-reddit
run: |
2023-12-05 20:20:06 +00:00
nix build '.#bulk-downloader-for-reddit'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-07-26 15:41:48 +00:00
- name: Build controld
run: |
nix build '.#controld'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-02-04 21:45:11 +00:00
- name: Build discord-downloader-go
run: |
nix build '.#discord-downloader-go'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build fennel-ls
run: |
2023-12-05 20:20:06 +00:00
nix build '.#fennel-ls'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build headscale-ui
run: |
2023-12-05 20:20:06 +00:00
nix build '.#headscale-ui'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build q
run: |
2023-12-05 20:20:06 +00:00
nix build '.#q'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-02-04 21:45:11 +00:00
- name: Build tg-archive
run: |
nix build '.#tg-archive'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build vuetorrent
run: |
2023-12-05 20:20:06 +00:00
nix build '.#vuetorrent'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-06-29 21:11:25 +00:00
- name: Build weewx
run: |
nix build '.#weewx'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2022-08-05 20:42:50 +00:00
2023-04-23 22:12:33 +00:00
build-arm64-linux:
2023-12-05 20:20:06 +00:00
runs-on: nix-arm64
2023-09-16 15:43:50 +00:00
2023-04-23 22:12:33 +00:00
steps:
2023-12-03 12:36:06 +00:00
- uses: actions/checkout@v4
with:
ref: master
2023-12-05 20:20:06 +00:00
- name: Cache Login
run: |
echo "Logging in ..."
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
2024-07-26 15:41:48 +00:00
- name: Build controld
run: |
nix build '.#controld'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build fennel-ls
run: |
2023-12-05 20:20:06 +00:00
nix build '.#fennel-ls'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build q
run: |
2023-12-05 20:20:06 +00:00
nix build '.#q'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 22:03:00 +00:00
- name: Build weewx-proxy
run: |
2023-12-05 20:20:06 +00:00
nix build '.#weewx-proxy'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')