ci: switch to nix flakes for more reproducible builds (#5426)

This commit is contained in:
Ning Sun
2025-01-24 11:30:45 +08:00
committed by GitHub
parent d01bc916f1
commit d53b9fbd03
4 changed files with 149 additions and 34 deletions

View File

@@ -110,14 +110,14 @@ jobs:
cleanbuild-linux-nix:
name: Run clean build on Linux
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --pure --run "cargo build"
nix_path: nixpkgs=channel:nixos-24.11
- run: nix develop --command cargo build
check-status:
name: Check status