-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split servers and workstations workflows
- Loading branch information
1 parent
f331ae1
commit df8eba9
Showing
2 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters