remove some bookmarks, thunar plugin handles now #445
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: build and cache | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - '**.nix' | |
| - 'flake.lock' | |
| - 'assets/**' | |
| - '.github/workflows/**' | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - '**.nix' | |
| - 'flake.lock' | |
| - 'assets/**' | |
| - '.github/workflows/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| permissions: | |
| id-token: write | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash -euo pipefail {0} | |
| steps: | |
| - name: Free disk space | |
| uses: jlumbroso/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: true | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Extract Nix cache config | |
| id: cache-config | |
| run: | | |
| python3 - <<'EOF' | |
| import re, os | |
| with open('modules/nix/settings.nix') as f: | |
| content = f.read() | |
| def extract_list(name): | |
| m = re.search(rf'{name}\s*=\s*\[(.*?)\];', content, re.DOTALL) | |
| if not m: return '' | |
| return ' '.join(re.findall(r'"([^"]+)"', m.group(1))) | |
| with open(os.environ['GITHUB_OUTPUT'], 'a') as out: | |
| out.write(f"substituters={extract_list('substituters')}\n") | |
| out.write(f"trusted-public-keys={extract_list('trusted-public-keys')}\n") | |
| EOF | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v16 | |
| with: | |
| extra-conf: | | |
| substituters = ${{ steps.cache-config.outputs.substituters }} | |
| trusted-public-keys = ${{ steps.cache-config.outputs.trusted-public-keys }} | |
| - name: Setup Cachix | |
| uses: cachix/cachix-action@v15 | |
| with: | |
| name: neonvoidx | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - name: Restore substituters | |
| run: echo "NIX_USER_CONF_FILES=${NIX_USER_CONF_FILES}:/etc/nix/nix.conf" >> "$GITHUB_ENV" | |
| - name: Check | |
| run: nix flake check -L | |
| - name: Build and cache void | |
| run: | | |
| cachix watch-exec neonvoidx -- \ | |
| nix build .#nixosConfigurations.void.config.system.build.toplevel \ | |
| --no-link -L --option max-jobs 1 | |
| - name: Build and cache voidframe | |
| run: | | |
| cachix watch-exec neonvoidx -- \ | |
| nix build .#nixosConfigurations.voidframe.config.system.build.toplevel \ | |
| --no-link -L --option max-jobs 1 |