Skip to content

Commit

Permalink
Switch everything QEMU'd to native arm64 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Jan 16, 2025
1 parent 0ebda90 commit 75f824a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 105 deletions.
103 changes: 36 additions & 67 deletions .github/workflows/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,49 +66,42 @@ jobs:
# run: |
# nix build .#mishy-raw-efi

# FIXME: Runs out of the allotted time limit for a job (6 hours).
# pilab:
# runs-on: ubuntu-latest
# steps:
# - name: Maximize build space
# uses: AdityaGarg8/[email protected]
# 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
pilab:
runs-on: ubuntu-24.04-arm
steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
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
- name: Clone Repository
uses: actions/checkout@v4

# - name: "Build: .#pilab-sd"
# run: |
# nix build .#pilab-sd
- name: "Build: .#pilab-sd"
run: |
nix build .#pilab-sd
keyberry:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
Expand All @@ -134,21 +127,15 @@ jobs:
# 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: .#keyberry-sd"
run: |
nix build .#keyberry-sd
stashy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
Expand All @@ -174,21 +161,15 @@ jobs:
# 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
zerostash:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
Expand All @@ -214,21 +195,15 @@ jobs:
# 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: .#zerostash-sd"
run: |
nix build .#zerostash-sd
mangoshake:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
Expand All @@ -254,14 +229,8 @@ jobs:
# 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: .#mangoshake-sd"
run: |
Expand Down
51 changes: 13 additions & 38 deletions .github/workflows/machines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,17 @@ jobs:
run: |
nix build .#nixosConfigurations.mishy.config.system.build.toplevel
# FIXME: Runs out of the allotted time limit for a job (6 hours).
# pilab:
# 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
pilab:
runs-on: ubuntu-24.04-arm
steps:
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Clone Repository
uses: actions/checkout@v4

# - name: "Build: .#pilab"
# run: |
# nix build .#nixosConfigurations.pilab.config.system.build.toplevel
- name: "Build: .#pilab"
run: |
nix build .#nixosConfigurations.pilab.config.system.build.toplevel
clawsiecats:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,54 +79,36 @@ jobs:
nix build .#nixosConfigurations.keyberry.config.system.build.toplevel
stashy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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
zerostash:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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: .#zerostash"
run: |
nix build .#nixosConfigurations.zerostash.config.system.build.toplevel
mangoshake:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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: .#mangoshake"
run: |
Expand Down

0 comments on commit 75f824a

Please sign in to comment.