ci: use improved not-nexy runners
This commit is contained in:
parent
5516ff93d1
commit
5fef27759c
1 changed files with 20 additions and 15 deletions
|
@ -49,9 +49,11 @@ permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: self-hosted
|
runs-on: [ubuntu-latest, dind, nix]
|
||||||
volumes:
|
container:
|
||||||
- /nix/store:/nix/store
|
volumes:
|
||||||
|
- /nix/store:/nix/store
|
||||||
|
- /nix/var/nix/db:/nix/var/nix/db
|
||||||
steps:
|
steps:
|
||||||
- name: Setup SSH web publish
|
- name: Setup SSH web publish
|
||||||
env:
|
env:
|
||||||
|
@ -102,12 +104,10 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#- uses: nixbuild/nix-quick-install-action@master
|
|
||||||
- uses: https://github.com/cachix/install-nix-action@v31.1.0
|
- uses: https://github.com/cachix/install-nix-action@v31.1.0
|
||||||
if: ${{ env.ACT }}
|
|
||||||
|
|
||||||
- name: Nom
|
- name: Nom
|
||||||
if: ${{ env.ACT }}
|
if: ${{ env.ACT_EXEC }}
|
||||||
run: |
|
run: |
|
||||||
echo "aaaa"
|
echo "aaaa"
|
||||||
nix profile install nixpkgs#nix-output-monitor
|
nix profile install nixpkgs#nix-output-monitor
|
||||||
|
@ -115,20 +115,23 @@ jobs:
|
||||||
file $(which nom)
|
file $(which nom)
|
||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
#- uses: https://github.com/cachix/install-nix-action@v27
|
|
||||||
# if: ${{ ! env.ACT }}
|
|
||||||
|
|
||||||
- name: Prepare build environment
|
- name: Prepare build environment
|
||||||
run: |
|
run: |
|
||||||
|
du -shc /nix/*
|
||||||
|
#du -shc /root/.profile/*
|
||||||
if ! type nom &> /dev/null; then
|
if ! type nom &> /dev/null; then
|
||||||
sudo cp $(which nix) /usr/bin/nom-or-nix
|
sudo cp $(which nix) /usr/bin/nom-or-nix
|
||||||
fi
|
fi
|
||||||
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
|
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
|
||||||
nix profile install --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv
|
nix profile install --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv
|
||||||
direnv allow
|
direnv allow
|
||||||
set -x
|
|
||||||
file $(which nom-nix)
|
du -shc /nix/*
|
||||||
nom develop .#all-features --command true
|
if type nom &> /dev/null; then
|
||||||
|
nom develop .#all-features --command true
|
||||||
|
else
|
||||||
|
nix develop .#all-features --command true
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Cache CI dependencies
|
- name: Cache CI dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -208,9 +211,11 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: self-hosted
|
runs-on: [not-nexy, nix, dind]
|
||||||
volumes:
|
container:
|
||||||
- /nix/store:/nix/store
|
volumes:
|
||||||
|
- /nix/store:/nix/store
|
||||||
|
- /nix/var/nix/db:/nix/var/nix/db
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue