revert runner back to native
Validate NixOS Config / validate (push) Successful in 37s

This commit is contained in:
2024-08-26 20:23:33 +00:00
parent b67302f703
commit 7c5bd6ccc9
+19 -9
View File
@@ -8,15 +8,25 @@ on:
branches: branches:
- main # Adjust this to match your main branch name - main # Adjust this to match your main branch name
env:
PATH: /run/current-system/sw/bin:$PATH
jobs: jobs:
test: validate:
runs-on: ubuntu-latest runs-on: native
container:
image: ubuntu
options: --cap-add=NET_RAW --cap-add=NET_ADMIN
steps: steps:
- name: Install and run ping - name: Debug environment
run: | run: |
cat /etc/resolv.conf echo $PATH
apt-get update && apt-get install -y iputils-ping which nix || echo "Nix not found"
ping -c 4 google.com
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate NixOS configuration
run: |
node --version
nix flake check
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
env:
NIX_CONFIG: "experimental-features = nix-command flakes"