Skip to content

Fix bug in lakefile rewriting, improve test #10

Fix bug in lakefile rewriting, improve test

Fix bug in lakefile rewriting, improve test #10

Workflow file for this run

name: release
on:
push:
tags: ["v*"]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: leanprover/lean-action@v1.4.0
with:
build: true
test: true
build:
needs: test
strategy:
matrix:
include:
- os: ubuntu-latest
artifact: hopscotch-linux-x86_64
binary: hopscotch
- os: macos-15-intel
artifact: hopscotch-macos-x86_64
binary: hopscotch
- os: macos-latest
artifact: hopscotch-macos-arm64
binary: hopscotch
- os: windows-latest
artifact: hopscotch-windows-x86_64
binary: hopscotch.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: leanprover/lean-action@v1.4.0
with:
build-args: hopscotch
test: false
- uses: actions/upload-artifact@v7.0.0
with:
name: ${{ matrix.artifact }}
path: .lake/build/bin/${{ matrix.binary }}
if-no-files-found: error
release:
needs: build
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
- name: Rename binaries
run: |
mv hopscotch-linux-x86_64/hopscotch hopscotch-linux-x86_64/hopscotch-linux-x86_64
mv hopscotch-macos-x86_64/hopscotch hopscotch-macos-x86_64/hopscotch-macos-x86_64
mv hopscotch-macos-arm64/hopscotch hopscotch-macos-arm64/hopscotch-macos-arm64
mv hopscotch-windows-x86_64/hopscotch.exe hopscotch-windows-x86_64/hopscotch-windows-x86_64.exe
- uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe
with:
generate_release_notes: true
files: |
hopscotch-linux-x86_64/hopscotch-linux-x86_64
hopscotch-macos-x86_64/hopscotch-macos-x86_64
hopscotch-macos-arm64/hopscotch-macos-arm64
hopscotch-windows-x86_64/hopscotch-windows-x86_64.exe