Skip to content

Use GitHub Actions to check that building succeeds #1

Use GitHub Actions to check that building succeeds

Use GitHub Actions to check that building succeeds #1

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: The Determinate Nix Installer
uses: DeterminateSystems/nix-installer-action@v14
- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Cache Lean toolchain
uses: actions/[email protected]
with:
path: ~/.elan/toolchains
key: ${{ runner.os }}-lean-toolchain-${{ hashFiles('lean-toolchain') }}
- name: Cache Lean packages
uses: actions/[email protected]
with:
path: .lake/packages
key: ${{ runner.os }}-lean-packages-${{ hashFiles('lake-manifest.json') }}
- name: Retrieve or restore flake.nix build inputs
run: nix develop
- name: Build vc tool
run: nix develop --command bash -c "cd vc; stack --nix build"
- name: Build Lean files
run: nix develop --command bash -c "lake build"