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