Skip to content

Commit

Permalink
Add CI target for .#nixin
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 12, 2024
1 parent e8d5c1d commit 3550f73
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 48 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "build"
on:
push:
workflow_dispatch:

jobs:
nix-setup:
uses: ./.github/workflows/nix-setup.yml

clawsiecats-minimal:
runs-on: ubuntu-latest
needs: nix-setup
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: clawsiecats-minimal
run: |
nix build .#nixosConfigurations.clawsiecats-minimal.config.system.build.toplevel
nixin:
runs-on: ubuntu-latest
needs: nix-setup
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: nixin
run: |
nix build .#nixosConfigurations.nixin.config.system.build.toplevel
48 changes: 0 additions & 48 deletions .github/workflows/clawsiecats.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/setup-nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Nix Setup

on:
workflow_call: {}

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v2
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable

0 comments on commit 3550f73

Please sign in to comment.