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-04-22 21:29:50 +00:00
|
|
|
jobs:
|
2023-09-15 22:17:12 +00:00
|
|
|
build-amd64-linux:
|
|
|
|
runs-on: ubuntu-latest-amd64
|
2023-04-22 21:29:50 +00:00
|
|
|
steps:
|
2023-10-25 13:58:11 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
|
|
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:
|
|
|
|
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
|
|
|
cache: ${{ secrets.ATTIC_CACHE }}
|
|
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
|
|
- run: nix build '.#nixosConfigurations.tanker.pkgs.attic-server'
|
|
|
|
- run: nix build '.#nixosConfigurations.tanker.pkgs.attic-client'
|
|
|
|
- run: nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
|
|
|
|
- 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:
|
2023-10-25 13:58:11 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
|
|
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:
|
|
|
|
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
|
|
|
cache: ${{ secrets.ATTIC_CACHE }}
|
|
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
|
|
- run: nix build '.#nixosConfigurations.argon.pkgs.attic-client'
|
|
|
|
- run: nix build '.#nixosConfigurations.argon.config.services.nginx.package'
|
|
|
|
- run: nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage'
|