2023-04-22 21:29:50 +00:00
|
|
|
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 * * *'
|
2023-04-22 21:29:50 +00:00
|
|
|
jobs:
|
2023-09-15 22:17:12 +00:00
|
|
|
build-amd64-linux:
|
2023-12-05 20:46:00 +00:00
|
|
|
runs-on: nix-amd64
|
2023-04-22 21:29:50 +00:00
|
|
|
steps:
|
2023-12-05 20:46:00 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-18 19:59:02 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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
|
2023-12-18 19:59:02 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
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'
|
2024-04-25 13:54:11 +00:00
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
|