1
0
Fork 0
dotfiles/.forgejo/workflows/build.yml

68 lines
2.9 KiB
YAML
Raw Permalink Normal View History

name: Build
on:
push:
branches: ['master']
2023-05-01 22:19:36 +00:00
paths:
- 'flake.lock'
2023-07-05 12:00:26 +00:00
- 'home/programs/nvim/plugins.nix'
2023-09-15 22:26:41 +00:00
- '.forgejo/workflows/build.yml'
2023-12-07 23:57:51 +00:00
schedule:
- cron: '20 4 * * *'
jobs:
2023-09-15 22:17:12 +00:00
build-amd64-linux:
2023-12-05 20:46:00 +00:00
runs-on: nix-amd64
steps:
2023-12-05 20:46:00 +00:00
- uses: actions/checkout@v4
with:
ref: master
2023-12-05 20:46:00 +00:00
- name: Cache Login
run: |
echo "Logging in ..."
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
- name: Build attic-server
run: |
nix build '.#nixosConfigurations.tanker.pkgs.attic-server'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 20:46:00 +00:00
- name: Build attic-client
run: |
nix build '.#nixosConfigurations.tanker.pkgs.attic-client'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-11-11 23:05:14 +00:00
- name: Build deploy-rs
run: |
nix build '.#deploy-rs'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 20:46:00 +00:00
- name: Build nginx
run: |
nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 20:46:00 +00:00
- name: Build neovim
run: |
nix build '.#nixosConfigurations.tanker.config.home-manager.users.daniel.programs.neovim.finalPackage'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-04-23 14:26:44 +00:00
build-arm64-linux:
2023-12-05 20:46:00 +00:00
runs-on: nix-arm64
2023-04-23 14:26:44 +00:00
steps:
2023-12-05 20:46:00 +00:00
- uses: actions/checkout@v4
with:
ref: master
2023-12-05 20:46:00 +00:00
- name: Cache Login
run: |
echo "Logging in ..."
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
- name: Build attic-client
run: |
nix build '.#nixosConfigurations.argon.pkgs.attic-client'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2024-11-11 23:05:14 +00:00
- name: Build deploy-rs
run: |
nix build '.#deploy-rs'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 20:46:00 +00:00
- name: Build nginx
run: |
nix build '.#nixosConfigurations.argon.config.services.nginx.package'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
2023-12-05 20:46:00 +00:00
- name: Build neovim
run: |
nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')