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
|
|
|
|
- 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 }} ./result
|
|
|
|
- name: Build attic-client
|
|
|
|
run: |
|
|
|
|
nix build '.#nixosConfigurations.tanker.pkgs.attic-client'
|
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
|
|
|
- name: Build nginx
|
|
|
|
run: |
|
|
|
|
nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
|
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
|
|
|
- name: Build neovim
|
|
|
|
run: |
|
|
|
|
nix build '.#nixosConfigurations.tanker.config.home-manager.users.daniel.programs.neovim.finalPackage'
|
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
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
|
|
|
|
- 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 }} ./result
|
|
|
|
- name: Build nginx
|
|
|
|
run: |
|
|
|
|
nix build '.#nixosConfigurations.argon.config.services.nginx.package'
|
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
|
|
|
- name: Build neovim
|
|
|
|
run: |
|
|
|
|
nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage'
|
|
|
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|