Skip to content

rime-ice: 6628e95a4e2322b70dbd4c3faa12f2de38fb5b60 -> 3d4aad575aa147a… #3861

rime-ice: 6628e95a4e2322b70dbd4c3faa12f2de38fb5b60 -> 3d4aad575aa147a…

rime-ice: 6628e95a4e2322b70dbd4c3faa12f2de38fb5b60 -> 3d4aad575aa147a… #3861

Workflow file for this run

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