switch image and use host network for complement

This commit is contained in:
morguldir 2025-04-19 03:58:53 +02:00
parent 5fef27759c
commit a67e210819
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -49,8 +49,10 @@ permissions: {}
jobs:
tests:
name: Test
runs-on: [ubuntu-latest, dind, nix]
runs-on: [tom, dind, nix]
container:
network: host
image: catthehacker/ubuntu:act-latest
volumes:
- /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db
@ -117,9 +119,10 @@ jobs:
- name: Prepare build environment
run: |
df -h /nix/var/nix/db
du -shc /nix/*
#du -shc /root/.profile/*
if ! type nom &> /dev/null; then
if ! command -v nom &> /dev/null; then
sudo cp $(which nix) /usr/bin/nom-or-nix
fi
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
@ -127,7 +130,7 @@ jobs:
direnv allow
du -shc /nix/*
if type nom &> /dev/null; then
if command -v nom &> /dev/null; then
nom develop .#all-features --command true
else
nix develop .#all-features --command true
@ -211,8 +214,9 @@ jobs:
build:
name: Build
runs-on: [not-nexy, nix, dind]
runs-on: [tom, nix, dind]
container:
image: catthehacker/ubuntu:act-latest
volumes:
- /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db