feat(ipc command): LoadConfig command for config switching #2308
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nix CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| jobs: | |
| checks-build: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| actions: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| code: | |
| - 'src/**' | |
| - 'assets/**' | |
| - 'build.rs' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'flake.nix' | |
| - 'flake.lock' | |
| - '.github/workflows/nix-ci.yml' | |
| - uses: nixbuild/nix-quick-install-action@v35 | |
| if: steps.filter.outputs.code == 'true' | |
| - name: Restore and save Nix store | |
| if: steps.filter.outputs.code == 'true' | |
| uses: nix-community/cache-nix-action@v7 | |
| with: | |
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', '**/Cargo.lock') }} | |
| restore-prefixes-first-match: nix-${{ runner.os }}- | |
| # purge only on main so PR runs don't delete the shared cache | |
| purge: ${{ github.ref == 'refs/heads/main' }} | |
| purge-prefixes: nix-${{ runner.os }}- | |
| purge-created: 0 | |
| purge-primary-key: never | |
| # 5 GB, above the ~3.35 GB final+deps closure | |
| gc-max-store-size-linux: 5368709120 | |
| - name: Nix build | |
| if: steps.filter.outputs.code == 'true' | |
| # build deps under a GC root so they survive pre-save GC and get cached | |
| run: | | |
| nix build .#deps --out-link deps-result | |
| nix build |