From d2a0e2f50165cd126f09ce6a6b5f84b2a71cbbf2 Mon Sep 17 00:00:00 2001 From: Marcus Huntemann Date: Sun, 25 Aug 2024 18:09:12 +0000 Subject: [PATCH] testing ubuntu runner for diagnostics --- .gitea/workflows/validate-nixos-config.yml | 28 +++++----------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/validate-nixos-config.yml b/.gitea/workflows/validate-nixos-config.yml index 03010e2..aceeea1 100644 --- a/.gitea/workflows/validate-nixos-config.yml +++ b/.gitea/workflows/validate-nixos-config.yml @@ -8,30 +8,14 @@ on: branches: - main # Adjust this to match your main branch name - -env: - NIX_PATH: "nixpkgs=channel:nixos-unstable" - jobs: - validate: - runs-on: nixos + test: + runs-on: ubuntu-latest container: + image: ubuntu options: --cap-add=NET_RAW --cap-add=NET_ADMIN steps: - - name: Debug environment + - name: Install and run ping run: | - nix-shell -p nix nodejs-slim which iputils - which nix || echo "nix not found" - which node || echo "node not found" - ping -c 5 google.de - - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Validate NixOS configuration - run: | - nix flake check - nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run - env: - NIX_CONFIG: "experimental-features = nix-command flakes" + apt-get update && apt-get install -y iputils-ping + ping -c 4 google.com