Skip to content

Detect workflow file changes to trigger LKL build#54

Merged
jserv merged 1 commit intosysprog21:mainfrom
rota1001:ci-update
Apr 9, 2026
Merged

Detect workflow file changes to trigger LKL build#54
jserv merged 1 commit intosysprog21:mainfrom
rota1001:ci-update

Conversation

@rota1001
Copy link
Copy Markdown
Collaborator

@rota1001 rota1001 commented Apr 9, 2026

Previously, the nightly LKL build only checked the hash of the LKL commit, so the build process will only be triggered when the upstream LKL has new commit. However, when the build-lkl.yml is updated, the LKL should be rebuilt.

This checks not only the LKL commit hash but the hash of build-lkl.yml to ensure the build process is triggered when build-lkl.yml is updated.

This GitHub Action is tested on my repo. When the build-lkl.yml was updated, the build process was triggered[1] even if the upstream LKL remained the same as the last nightly LKL release. After that, when the other GitHub Action was run, the build process was not triggered[2] since the hash of build-lkl.yml remained the same.

[1] https://github.com/rota1001/kbox/actions/runs/24188685186
[2] https://github.com/rota1001/kbox/actions/runs/24188694374


Summary by cubic

Nightly LKL builds now trigger when either the upstream LKL commit changes or when the build-lkl.yml workflow changes. This makes sure workflow updates take effect immediately.

  • New Features
    • Checkout repo in check-upstream to hash .github/workflows/build-lkl.yml.
    • Compute and expose yml_hash; trigger if upstream commit or yml_hash differ from the last nightly, otherwise skip.
    • Add yml_hash to release notes for traceability.

Written for commit 000074b. Summary will update on new commits.

@rota1001 rota1001 changed the title Detect workflow file changes tor trigger LKL build Detect workflow file changes to trigger LKL build Apr 9, 2026
cubic-dev-ai[bot]

This comment was marked as resolved.

Previously, the nightly LKL build only checked the hash of the LKL
commit, so the build process will only be triggered when the upstream
LKL has new commit. However, if the build-lkl.yml is updated, the LKL
should be rebuilt.

This checks not only the LKL commit hash but the hash of build-lkl.yml
to ensure the build process is triggered when build-lkl.yml is updated.

Change-Id: I8db1dc2c1fea03bd8dc85d767e6298739d4a9f35
@jserv jserv merged commit 65608e6 into sysprog21:main Apr 9, 2026
5 checks passed
@jserv
Copy link
Copy Markdown
Contributor

jserv commented Apr 9, 2026

Thank @rota1001 for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants