switch image and use host network for complement
This commit is contained in:
parent
5fef27759c
commit
a67e210819
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue