23375d10b1
GitHub Actions free runners have ~14 GB total; removing unused toolchains (dotnet, android, CodeQL, boost) reclaims ~8-10 GB needed for the full NixOS system build. https://claude.ai/code/session_01JwjdjwvgMGW4TcpYi4MZ6n
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Check NixOS Config
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
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 |