Skip to content

Releases: leanprover/lean-action

v1.1.1

23 Nov 13:17
465529c
Compare
Choose a tag to compare

Fixed

  • fix bug with passing multiple arguments to lake build via build-args input
  • fix false feature flag logic when using auto-config: true

v1.1.0

16 Sep 12:31
8fc2853
Compare
Choose a tag to compare

Added

  • Windows GitHub runner support

Fixed

  • replace actions/cache with actions/cache/restore to prevent redundant cache saving
    previously caused by the combination of actions/cache and actions/cache/save

v1.0.2

26 Aug 11:54
56b85b0
Compare
Choose a tag to compare

Changed

  • use empty string as default value for status outputs instead of "NOT_RUN"
    to avoid set-output-parameters final step breaking log group expansion

Fixed

  • correct typo of in configuration step: "lake check-test failed" -> "lake check-lint failed"
  • fix log group expansion in failing steps due to set-output-parameters step and removing the end log group command when a step fails

v1.0.1

20 Aug 21:04
2a3681c
Compare
Choose a tag to compare

Changed

  • use lake-manifest.json to detect mathlib dependency instead of lakefile.{lean, toml} to make lean-action more robust to changes in the configuration file formatting.

Fixed

  • switch elan installation method from download platform tar to elan-init.sh to support addition runners, e.g., macos.

v1.0.0

20 Jul 11:34
b7cdeeb
Compare
Choose a tag to compare

v1.0.0 - 2024-07-20

Added

  • new auto-config input to specify if lean-action should use the Lake workspace to automatically determine which CI features to run, i.e., lake build, lake test, lake lint.
  • new build input to specify if lean-action should run lake build.
  • new lint input to specify if lean-action should run lake lint.
  • parameterize functional tests by Lean toolchain to allow for testing lean-action on any Lean version.

Changed

  • test input now defaults to auto-config. Users can still specify test: true to force lean-action to run lake test.
  • removed lint-module input. Users should now use a @[lint_driver] to integrate with the Batteries testing framework.

Fixed

  • improved GitHub cache keys to make caching more efficient and avoid edge cases when upgrading Lean version.

v1-beta.1

21 Jun 11:47
50b53f3
Compare
Choose a tag to compare
v1-beta.1 Pre-release
Pre-release

v1-beta.1 - 2024-06-21

Added

  • new use-github-cache input to specify if lean-action should use actions/cache to cache the .lake folder
  • build-status and test-status output parameters
  • new lake-package-directory input to specify the directory to run Lake commands.
    This input will enable users to use lean-action when Lake packages are contained in repository subdirectories.

Changed

  • upgrade elan version to v3.1.1
  • run lake check-test before running lake test
  • improved log readability with explicit log group naming and additional white space

Fixed

  • remove misleading .toml error message in mathlib detection
  • remove elan-init file after elan installation

v1-beta.0

21 May 12:59
36ca152
Compare
Choose a tag to compare
v1-beta.0 Pre-release
Pre-release

v1-beta - 2024-05-21

Added

  • logs are grouped by step for better readability
  • new build-args input to specify arguments to pass to lake build
  • install elan step logs lean --version and lake --version

Changed

  • lean-action no longer contains an actions/checkout step
  • mathlib-cache renamed to get-mathlib-cache

Fixed

  • improved default value for get-mathlib-cache

v1-alpha

12 May 14:54
8b3eddb
Compare
Choose a tag to compare
v1-alpha Pre-release
Pre-release

Initial alpha release to get user feedback on initial set of features.

For best results, Lean projects must use at version v4.8.0-rc1 or later.

See README.md for usage examples

Added

  • build packages with lake build
  • run tests with lake test
  • automatically detect mathlib dependency and run lake exe get cache
  • detect Reservoir eligibility
  • check for environment hacking with lean4checker