All notable changes to lean-action
will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- fix bug with passing multiple arguments to
lake build
viabuild-args
input - fix false feature flag logic when using
auto-config: true
- Windows GitHub runner support
- replace
actions/cache
withactions/cache/restore
to prevent redundant cache saving previously caused by the combination ofactions/cache
andactions/cache/save
- use empty string as default value for status outputs instead of "NOT_RUN"
to avoid
set-output-parameters
final step breaking log group expansion
- 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
- 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.
- switch elan installation method from download platform tar to
elan-init.sh
to support addition runners, e.g., macos.
- new
auto-config
input to specify iflean-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 iflean-action
should runlake build
- new
lint
input to specify iflean-action
should runlake lint
- parameterize functional tests by Lean toolchain to allow for testing
lean-action
on any Lean version.
test
input now defaults toauto-config
. Users can still specifytest: true
to forcelean-action
to runlake test
.- removed
lint-module
input. Users should now use a@[lint_driver]
to integrate with theBatteries
testing framework.
- improved GitHub cache keys to make caching more efficient and avoid edge cases when upgrading Lean version.
- new
use-github-cache
input to specify iflean-action
should useactions/cache
to cache the.lake
folder build-status
andtest-status
output parameters- new
lake-package-directory
input to specify the directory to run Lake commands. This input will enable users to uselean-action
when Lake packages are contained in repository subdirectories. - new
auto-config
input to configurelean-action
to use the Lake workspace to decide which steps to run
- upgrade elan version to
v3.1.1
- run
lake check-test
before runninglake test
- improved log readability with explicit log group naming and additional white space
- remove misleading .toml error message in mathlib detection
- remove
elan-init
file after elan installation
- logs are grouped by step for better readability
- new
build-args
input to specify arguments to pass tolake build
- install elan step logs
lean --version
andlake --version
lean-action
no longer contains anactions/checkout
stepmathlib-cache
renamed toget-mathlib-cache
- improved default value for
get-mathlib-cache
- build packages with
lake build
- run tests with
lake test
- automatically detect
mathlib
dependency and runlake exe get cache
- detect Reservoir eligibility
- check for environment hacking with lean4checker