Skip to content

Commit

Permalink
Add ci generator for mishy, disable artf uploads
Browse files Browse the repository at this point in the history
Artifacts aren't used as much and so are eating space in my GH account.
  • Loading branch information
ritiek committed Oct 19, 2024
1 parent fc359ac commit dcb6999
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 23 deletions.
51 changes: 40 additions & 11 deletions .github/workflows/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,48 @@ jobs:
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4
- name: Build .#minimal-iso

- name: "Build: .#minimal-iso"
run: |
nix build .#minimal-iso
- name: Upload .#minimal-iso
uses: actions/upload-artifact@v4
with:
name: minimal.iso
path: ./result/iso/nixos.iso
- name: Build .#minimal-install-iso
# - name: Upload .#minimal-iso
# uses: actions/upload-artifact@v4
# with:
# name: minimal.iso
# path: ./result/iso/nixos.iso
- name: "Build: .#minimal-install-iso"
run: |
nix build .#minimal-install-iso
- name: Upload .#minimal-install-iso
uses: actions/upload-artifact@v4
# - name: Upload .#minimal-install-iso
# uses: actions/upload-artifact@v4
# with:
# name: minimal-install.iso
# path: ./result/iso/nixos-*.iso

mishy:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v4.1
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
# Derivations are built under /tmp
- name: Bind mount /tmp
run: |
sudo mount --bind /mnt /tmp
- name: Set swap space
uses: pierotofy/set-swap-space@master
with:
name: minimal-install.iso
path: ./result/iso/nixos-*.iso
swap-size-gb: 10
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4

- name: "Build: .#mishi-raw-efi"
run: |
nix build .#mishy-raw-efi
28 changes: 16 additions & 12 deletions .github/workflows/machines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ jobs:
mishy:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v4.1
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
# - name: Maximize build space
# uses: AdityaGarg8/remove-unwanted-software@v4.1
# with:
# remove-dotnet: 'true'
# remove-android: 'true'
# remove-haskell: 'true'
# remove-codeql: 'true'
# remove-docker-images: 'true'
#
# Filesystem on /mnt for some reason has more space on GitHub action
# runner than /
- name: Bind mount /nix
run: |
sudo mkdir /nix
Expand All @@ -28,7 +31,7 @@ jobs:
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4
- name: Build .#mishy
- name: "Build: .#mishy"
run: |
nix build .#nixosConfigurations.mishy.config.system.build.toplevel
Expand All @@ -39,12 +42,13 @@ jobs:
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4
- name: Build .#clawsiecats-minimal

- name: "Build: .#clawsiecats-minimal"
run: |
nix build .#nixosConfigurations.clawsiecats-minimal.config.system.build.toplevel
- name: Build .#clawsiecats
- name: "Build: .#clawsiecats"
run: |
nix build .#nixosConfigurations.clawsiecats.config.system.build.toplevel
- name: Build .#clawsiecats-luks
- name: "Build: .#clawsiecats-luks"
run: |
nix build .#nixosConfigurations.clawsiecats-luks.config.system.build.toplevel

0 comments on commit dcb6999

Please sign in to comment.