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