debug
This commit is contained in:
parent
7b3d308e5d
commit
e9c7a0bd9e
1 changed files with 16 additions and 8 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -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 \
|
||||
|
|
Reference in a new issue