Skip to content

Commit

Permalink
feat(ci): change nix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Jan 31, 2025
1 parent d41c00d commit ccca83e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
target:
- double: aarch64-linux # target we are building for
system: aarch64-linux # system we are building on
emulated: true # whether this build is being emulated
runner: ubuntu-24.04 # GitHub runner the build is running on
runner: ubuntu-24.04-arm # GitHub runner the build is running on
flake: bundled # flake package to build
interpreter: /lib/ld-linux-aarch64.so.1 # path to libc interpreter
- double: x86_64-linux
Expand All @@ -36,15 +35,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: QEMU
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-static
- name: Nix
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: extra-platforms = ${{ matrix.target.system }}
uses: nixbuild/nix-quick-install-action@v29
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ matrix.target.double }}
gc-max-store-size: 1879048192
- name: Build
run: nix build -L .#packages.${{ matrix.target.system }}.${{ matrix.target.flake }}
- name: Set interpreter
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/Container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,23 @@ jobs:
strategy:
matrix:
target:
- double: aarch64-linux # target we are building for
architecture: arm64 # container architecture label
emulated: true # whether this build host is being emulated
- double: aarch64-linux # target we are building for
architecture: arm64 # container architecture label
runner: ubuntu-24.04-arm # GitHub runner the build is running on
- double: x86_64-linux
architecture: amd64
runs-on: ubuntu-24.04
runner: ubuntu-24.04
runs-on: ${{ matrix.target.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: QEMU
if: ${{ matrix.target.emulated }}
run: sudo apt-get install -y qemu-user-static
- name: Nix
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: |
extra-platforms = ${{ matrix.target.double }}
uses: nixbuild/nix-quick-install-action@v29
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ matrix.target.double }}
gc-max-store-size: 1879048192
- name: Build
run: nix build -L .#packages.${{ matrix.target.double }}.container
- name: Login
Expand Down

0 comments on commit ccca83e

Please sign in to comment.