flake.lock: Update #3154
This file contains 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 flake check" | |
on: | |
pull_request: | |
push: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
build-mount-path: '/nix' | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Install nix | |
uses: cachix/install-nix-action@master | |
with: | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Set nix daemon tmp path | |
run: | | |
sudo mkdir --parents /nix/tmp | |
sudo chmod 777 /nix/tmp | |
cat > override.conf <<EOF | |
[Service] | |
Environment="TMPDIR=/nix/tmp" | |
EOF | |
sudo mkdir /etc/systemd/system/nix-daemon.service.d/ | |
sudo mv override.conf /etc/systemd/system/nix-daemon.service.d/override.conf | |
sudo systemctl daemon-reload | |
sudo systemctl restart nix-daemon | |
- name: Setup cachix | |
uses: cachix/cachix-action@master | |
with: | |
name: linyinfeng | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Nix flake check | |
run: nix flake check --verbose --print-build-logs --keep-going |