migrate from github to gitea
Check NixOS Config / build (push) Failing after 21s

This commit is contained in:
2026-05-21 11:48:53 +03:00
parent 0db7fd1251
commit 6755d28c8f
+46
View File
@@ -0,0 +1,46 @@
name: Check NixOS Config
on:
pull_request:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/share/swift /usr/local/lib/android \
/opt/ghc /opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
sudo docker image prune --all --force || true
df -h
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: chexit
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Check flake syntax
run: nix flake check --no-build
- name: Build system config
run: |
nix build .#nixosConfigurations.chexit.config.system.build.toplevel \
--no-link \
--print-build-logs