1
0
Fork 0
dotfiles/.forgejo/workflows/build.yml
Daniel Kempkens 625c225576
All checks were successful
Update Flake / update-flake (push) Successful in 3m20s
Build / build-amd64-linux (push) Successful in 14m46s
Build / build-arm64-linux (push) Successful in 1h22m14s
fix(ci): force the master branch during checkout
2023-12-18 20:59:02 +01:00

59 lines
2 KiB
YAML

name: Build
on:
push:
branches: ['master']
paths:
- 'flake.lock'
- 'home/programs/nvim/plugins.nix'
- '.forgejo/workflows/build.yml'
schedule:
- cron: '20 4 * * *'
jobs:
build-amd64-linux:
runs-on: nix-amd64
steps:
- uses: actions/checkout@v4
with:
ref: master
- 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
build-arm64-linux:
runs-on: nix-arm64
steps:
- uses: actions/checkout@v4
with:
ref: master
- 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