infrastructure/.github/workflows/nixos.yml

148 lines
4.2 KiB
YAML
Raw Normal View History

2022-09-09 19:02:32 +02:00
name: NixOS
2023-04-16 11:58:08 +02:00
on: workflow_dispatch
2022-09-09 19:04:23 +02:00
2022-09-09 19:02:32 +02:00
jobs:
2022-12-18 09:52:12 +01:00
build-aoife:
2022-10-09 19:02:53 +02:00
runs-on: ubuntu-latest
steps:
2022-10-17 16:29:32 +02:00
- uses: actions/checkout@v3
2022-10-11 14:11:17 +02:00
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
2022-10-09 19:02:53 +02:00
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v20
2022-10-09 19:02:53 +02:00
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
2022-10-09 19:02:53 +02:00
with:
name: 0x76-infra
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: hyprland
- name: "Build NixOS config ❄️"
run: |
2022-12-18 09:52:12 +01:00
nix run '.#' build -- --on "aoife"
2022-10-08 16:34:25 +02:00
build-iso:
runs-on: ubuntu-latest
steps:
2022-10-17 16:29:32 +02:00
- uses: actions/checkout@v3
2022-10-08 16:34:25 +02:00
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v20
2022-10-08 16:34:25 +02:00
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
2022-10-08 16:34:25 +02:00
with:
name: 0x76-infra
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2022-10-08 17:05:22 +02:00
- name: "Build NixOS ISO ❄️"
2022-10-08 16:34:25 +02:00
run: |
nix build '.#iso'
2022-10-15 13:44:27 +02:00
build-lxc:
runs-on: ubuntu-latest
steps:
2022-10-17 16:29:32 +02:00
- uses: actions/checkout@v3
2022-10-15 13:44:27 +02:00
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v20
2022-10-15 13:44:27 +02:00
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
2022-10-08 16:34:25 +02:00
with:
2022-10-15 13:44:27 +02:00
name: 0x76-infra
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: "Build NixOS Proxmox LXC ❄️"
run: |
nix build '.#proxmox-lxc'
2022-09-16 11:32:19 +02:00
build-olympus:
runs-on: ubuntu-latest
steps:
2022-10-17 16:29:32 +02:00
- uses: actions/checkout@v3
2022-09-16 11:32:19 +02:00
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v20
2022-09-16 11:32:19 +02:00
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
2022-09-16 11:32:19 +02:00
with:
name: 0x76-infra
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2022-09-21 16:07:47 +02:00
extraPullNames: hyprland
2022-09-16 11:32:19 +02:00
- name: "Build NixOS config ❄️"
run: |
nix run '.#' build -- --on "@olympus"
build-hades:
runs-on: ubuntu-latest
steps:
2022-10-17 16:29:32 +02:00
- uses: actions/checkout@v3
2022-09-16 11:32:19 +02:00
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v20
2022-09-16 11:32:19 +02:00
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
2022-09-16 11:32:19 +02:00
with:
name: 0x76-infra
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: "Build NixOS config ❄️"
run: |
nix run '.#' build -- --on "@hades"
2022-10-09 19:02:53 +02:00
# disabled because of OOM errors
# check:
# runs-on: ubuntu-latest
# steps:
2022-10-17 16:29:32 +02:00
# - uses: actions/checkout@v3
2022-09-10 19:44:16 +02:00
2022-10-09 19:02:53 +02:00
# - name: "Install Nix ❄️"
2022-10-17 16:29:32 +02:00
# uses: cachix/install-nix-action@v18
2022-09-10 19:44:16 +02:00
2022-10-09 19:02:53 +02:00
# - name: "Install Cachix ❄️"
2022-10-17 16:29:32 +02:00
# uses: cachix/cachix-action@v11
2022-10-09 19:02:53 +02:00
# with:
# name: 0x76-infra
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2022-09-10 19:44:16 +02:00
2022-10-09 19:02:53 +02:00
# - name: "Check NixOS Flake ❄️"
# run: |
# nix flake check