2023-04-22 23:29:50 +02:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ['master']
|
2023-05-02 00:19:36 +02:00
|
|
|
paths:
|
|
|
|
- 'flake.lock'
|
2023-07-05 14:00:26 +02:00
|
|
|
- 'home/programs/nvim/plugins.nix'
|
2023-07-05 13:28:24 +02:00
|
|
|
workflow_dispatch:
|
2023-04-22 23:29:50 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-x86_64-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-07-05 17:43:18 +02:00
|
|
|
- name: Check Flake
|
|
|
|
uses: DeterminateSystems/flake-checker-action@v5
|
|
|
|
with:
|
|
|
|
send-statistics: false
|
2023-06-27 09:45:55 +02:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
|
|
|
- name: Run the Magic Nix Cache
|
|
|
|
uses: DeterminateSystems/magic-nix-cache-action@v1
|
2023-04-22 23:29:50 +02:00
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: nifoc
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-06-21 15:09:19 +02: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 23:55:20 +02:00
|
|
|
- run: nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
|
2023-07-05 13:27:13 +02:00
|
|
|
- run: nix build '.#nixosConfigurations.tanker.config.home-manager.users.daniel.programs.neovim.finalPackage'
|
2023-04-23 16:26:44 +02:00
|
|
|
|
|
|
|
build-arm64-linux:
|
|
|
|
runs-on: buildjet-2vcpu-ubuntu-2204-arm
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-06-27 09:45:55 +02:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
2023-04-23 16:26:44 +02:00
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: nifoc
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-07-05 13:25:30 +02:00
|
|
|
- run: nix build '.#nixosConfigurations.argon.pkgs.attic-client'
|
|
|
|
- run: nix build '.#nixosConfigurations.argon.pkgs.deploy-rs'
|
2023-07-05 23:55:20 +02:00
|
|
|
- run: nix build '.#nixosConfigurations.argon.config.services.nginx.package'
|
2023-07-05 13:36:11 +02:00
|
|
|
- run: nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage'
|