ci: use improved not-nexy runners

This commit is contained in:
morguldir 2025-04-16 01:23:55 +02:00
parent 5516ff93d1
commit 5fef27759c
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -49,9 +49,11 @@ permissions: {}
jobs: jobs:
tests: tests:
name: Test name: Test
runs-on: self-hosted runs-on: [ubuntu-latest, dind, nix]
container:
volumes: volumes:
- /nix/store:/nix/store - /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/*
if type nom &> /dev/null; then
nom develop .#all-features --command true 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]
container:
volumes: volumes:
- /nix/store:/nix/store - /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db
strategy: strategy:
matrix: matrix:
include: include: