Native nix
Some checks failed
Build / nix-build (native-aarch64, varda) (push) Failing after 4s
Build / nix-build (ubuntu-x86_64, durincore) (push) Failing after 1m45s
Build / Nix Build Successful (push) Successful in 1s

This commit is contained in:
Joseph Hanson 2024-05-21 13:19:54 -05:00
parent 2767a9178e
commit 7be726e744

View file

@ -10,7 +10,7 @@ jobs:
matrix:
include:
- system: varda
os: ubuntu-aarch64
os: native-aarch64
- system: durincore
os: ubuntu-x86_64
runs-on: ${{ matrix.os }}
@ -18,13 +18,15 @@ jobs:
image: docker.io/library/ubuntu:latest
steps:
- name: Install sudo and node
if: contains(matrix.os, 'ubuntu')
# For compatibility with actions and debian
run: apt update && apt install -y nodejs npm sudo udev curl lvm2
- name: Create nix mount point
if: contains(matrix.os, 'ubuntu')
run: sudo mkdir /nix
- name: Maximize build space
uses: https://github.com/easimon/maximize-build-space@v10
if: contains(matrix.os, 'ubuntu')
uses: https://github.com/easimon/maximize-build-space@v10
with:
root-reserve-mb: 512
swap-size-mb: 1024
@ -38,10 +40,8 @@ jobs:
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0
# For compatibility with actions and debian
# - name: Install sudo
# run: apt update && apt install -y sudo
- name: Install Nix
if: contains(matrix.os, 'ubuntu')
uses: https://github.com/cachix/install-nix-action@v26
with:
extra_nix_config: |