Skip to content

Commit

Permalink
Add ci actions for stashy
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 27, 2024
1 parent 9afa8e4 commit 3e3a78f
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,43 @@ jobs:
- name: "Build: .#mishi-raw-efi"
run: |
nix build .#mishy-raw-efi
stashy:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v4.1
with:
verbose: 'true'
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
remove-large-packages: 'true'
remove-cached-tools: 'true'
remove-swapfile: 'true'
# Derivations are built under /tmp
- name: Bind mount /tmp
run: |
sudo mkdir /mnt/nix /nix
sudo chmod 0755 /nix
sudo mount --bind /mnt/nix /nix
# - name: Set swap space
# uses: pierotofy/set-swap-space@master
# with:
# swap-size-gb: 10
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: "extra-platforms = aarch64-linux"
- name: Clone Repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: "Build: .#stashy-sd"
run: |
nix build .#stashy-sd
18 changes: 18 additions & 0 deletions .github/workflows/machines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,21 @@ jobs:
- name: "Build: .#clawsiecats-luks"
run: |
nix build .#nixosConfigurations.clawsiecats-luks.config.system.build.toplevel
stashy:
runs-on: ubuntu-latest
steps:
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: "extra-platforms = aarch64-linux"
- name: Clone Repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: "Build: .#stashy"
run: |
nix build .#nixosConfigurations.stashy.config.system.build.toplevel
1 change: 1 addition & 0 deletions machines/mishy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@
};

boot.kernelPackages = pkgs.linuxPackages_latest;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.tmp = {
useTmpfs = true;
cleanOnBoot = true;
Expand Down

0 comments on commit 3e3a78f

Please sign in to comment.