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 554102c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 19 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: Mishy Raw EFI"
run: |
nix build .#mishy-raw-efi
20 changes: 12 additions & 8 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 @@ -39,6 +42,7 @@ jobs:
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4

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

0 comments on commit 554102c

Please sign in to comment.