Skip to content

Commit

Permalink
ci: Cache Lean packages in Cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Feb 19, 2025
1 parent 021187b commit 056fc02
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build and upload Lean binaries to Cachix cache
name: Nix CI

on:
push:
branches: main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: Build and cache Lean
runs-on: warp-ubuntu-latest-x64-16x
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v14
with:
name: argumentcomputer
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix build .#cacheRoots
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.*
!.gitignore
/result
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
};

packages = {
inherit (pkgs.lean) leanshared lean leanc lean-all lake;
inherit (pkgs.lean) leanshared lean leanc lean-all lake cacheRoots;
};

checks = import ./checks.nix {inherit pkgs;};
Expand Down

0 comments on commit 056fc02

Please sign in to comment.