Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep compiler explorer synced with the mainnet version of forc #709

Merged
merged 15 commits into from
Mar 6, 2025

Conversation

JoshuaBatty
Copy link
Member

@JoshuaBatty JoshuaBatty commented Mar 4, 2025

This PR adds a new GitHub Actions workflow that automatically updates Compiler Explorer and the Infra repos when a new forc version is released in the mainnet channel. As compiler explorer allows for multiple versions of a compiler, this ensures that new mainnet versions of the compiler are automatically added to godbolt.

The workflow:

  • Triggers when channel-fuel-mainnet.toml is updated in the gh-pages branch
  • Compares the old and new Forc versions
  • When a version change is detected, runs the update-compiler-explorer tool

This automation eliminates manual steps and ensures Compiler Explorer stays up-to-date with the latest Sway compiler releases on mainnet.

@JoshuaBatty JoshuaBatty marked this pull request as draft March 4, 2025 04:52
@JoshuaBatty JoshuaBatty self-assigned this Mar 4, 2025
@JoshuaBatty JoshuaBatty added the ci label Mar 4, 2025
Copy link
Contributor

github-actions bot commented Mar 4, 2025

LCOV of commit 6140e94 during CI #2148

Summary coverage rate:
  lines......: 85.6% (2423 of 2832 lines)
  functions..: 54.0% (334 of 619 functions)
  branches...: 63.0% (290 of 460 branches)

Files changed coverage rate: n/a

@JoshuaBatty JoshuaBatty force-pushed the josh/compiler_explorer branch from befc864 to 88c5ae4 Compare March 5, 2025 03:16
@JoshuaBatty JoshuaBatty marked this pull request as ready for review March 5, 2025 03:24
@JoshuaBatty JoshuaBatty requested a review from a team March 5, 2025 03:24
@JoshuaBatty JoshuaBatty requested a review from a team March 5, 2025 05:16
@JoshuaBatty JoshuaBatty merged commit d377836 into master Mar 6, 2025
18 checks passed
@JoshuaBatty JoshuaBatty deleted the josh/compiler_explorer branch March 6, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants