dotfiles/.forgejo/workflows/build.yml

56 lines
1.9 KiB
YAML
Raw 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'
jobs:
2023-09-15 22:17:12 +00:00
build-amd64-linux:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v3
- name: Install Nix
2023-09-15 22:17:12 +00:00
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
with:
init: none
planner: linux
github-token: null
- name: Setup Attic
uses: https://github.com/ryanccn/attic-action@v0
with:
2023-09-15 22:17:12 +00:00
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
2023-06-21 13:09:19 +00:00
- run: nix build '.#nixosConfigurations.tanker.pkgs.attic-server'
- run: nix build '.#nixosConfigurations.tanker.pkgs.attic-client'
- run: nix build '.#nixosConfigurations.tanker.pkgs.deploy-rs'
2023-07-05 21:55:20 +00:00
- run: nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
2023-07-05 11:27:13 +00:00
- run: nix build '.#nixosConfigurations.tanker.config.home-manager.users.daniel.programs.neovim.finalPackage'
2023-04-23 14:26:44 +00:00
build-arm64-linux:
2023-09-15 22:17:12 +00:00
runs-on: ubuntu-latest-arm64
2023-04-23 14:26:44 +00:00
steps:
- uses: actions/checkout@v3
- name: Install Nix
2023-09-15 22:17:12 +00:00
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
with:
init: none
planner: linux
github-token: null
- name: Setup Attic
uses: https://github.com/ryanccn/attic-action@v0
2023-04-23 14:26:44 +00:00
with:
2023-09-15 22:17:12 +00:00
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
2023-07-05 11:25:30 +00:00
- run: nix build '.#nixosConfigurations.argon.pkgs.attic-client'
- run: nix build '.#nixosConfigurations.argon.pkgs.deploy-rs'
2023-07-05 21:55:20 +00:00
- run: nix build '.#nixosConfigurations.argon.config.services.nginx.package'
2023-07-05 11:36:11 +00:00
- run: nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage'