debug
Some checks failed
Build / nix-build (ubuntu-aarch64, varda) (push) Failing after 1m22s
Build / nix-build (ubuntu-x86_64, durincore) (push) Failing after 1m40s
Build / Nix Build Successful (push) Successful in 1s

This commit is contained in:
Joseph Hanson 2024-05-21 12:03:22 -05:00
parent 7b3d308e5d
commit e9c7a0bd9e

View file

@ -17,11 +17,24 @@ jobs:
container:
image: docker.io/library/ubuntu:latest
steps:
# - name: Create nix mount point
# if: contains(matrix.os, 'ubuntu-x86_64')
# run: sudo mkdir /nix
- name: Install sudo and node
run: apt update && apt install -y nodejs npm sudo udev curl
- 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')
with:
root-reserve-mb: 512
swap-size-mb: 1024
build-mount-path: "/nix"
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-docker-images: true
remove-codeql: true
overprovision-lvm: true
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
with:
@ -31,8 +44,6 @@ jobs:
# run: apt update && apt install -y sudo
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v26
env:
HOME: '/tmp'
with:
extra_nix_config: |
experimental-features = nix-command flakes
@ -46,15 +57,12 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
env:
USER: 'root'
HOME: '/tmp'
- name: Garbage collect build dependencies
run: nix-collect-garbage
- name: Build new ${{ matrix.system }} system
shell: bash
env:
HOME: '/tmp'
run: |
set -o pipefail
nix build \