Skip to content

Update example in README #5

Update example in README

Update example in README #5

Workflow file for this run

name: release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Lean
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
"$HOME/.elan/bin/elan" toolchain install "$(tr -d '\n' < lean-toolchain)"
- name: Build
run: lake build
- name: Test
run: lake test
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v7.0.0
with:
name: hopscotch-ubuntu
path: .lake/build/bin/hopscotch
if-no-files-found: error