Skip to content

Commit

Permalink
ci: split servers and workstations workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Dec 30, 2024
1 parent f331ae1 commit df8eba9
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 5 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build-servers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build 🏗️ Servers ️💁

on:
push:
branches:
- main
paths:
- 'flake.lock'
workflow_dispatch:

jobs:
build-host:
runs-on: blacksmith-2vcpu-ubuntu-2204
strategy:
matrix:
host:
- malak
- revan
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Building 👷 ${{ matrix.host }} 🐧
run: |
# Disable non-redist packages
for NON_REDIST in cider pico8; do
if [ -d "pkgs/${NON_REDIST}" ]; then
mv -v "pkgs/${NON_REDIST}" "pkgs/${NON_REDIST}-disabled"
mv -v pkgs/${NON_REDIST}-ci pkgs/${NON_REDIST}
fi
done
nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel -L
build-home:
runs-on: blacksmith-2vcpu-ubuntu-2204
strategy:
matrix:
home:
- martin@malak
- martin@revan
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Building 👷 ${{ matrix.home }} 🏠
run: |
# Disable non-redist packages
for NON_REDIST in cider pico8; do
if [ -d "pkgs/${NON_REDIST}" ]; then
mv -v "pkgs/${NON_REDIST}" "pkgs/${NON_REDIST}-disabled"
mv -v pkgs/${NON_REDIST}-ci pkgs/${NON_REDIST}
fi
done
nix run nixpkgs#home-manager -- build --flake .#${{ matrix.home }} -L
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build 🏗️ Configs ️❄
name: Build 🏗️ Workstations ️️🖥

on:
push:
Expand All @@ -14,9 +14,7 @@ jobs:
strategy:
matrix:
host:
- malak
- phasma
- revan
- vader
permissions:
contents: read
Expand All @@ -42,9 +40,7 @@ jobs:
strategy:
matrix:
home:
- martin@malak
- martin@phasma
- martin@revan
- martin@vader
permissions:
contents: read
Expand Down

0 comments on commit df8eba9

Please sign in to comment.