Update example in README #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |