Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented Mar 14, 2025

Control the use of cache for actions.
Also remove unnecessary processing.

  • Prevent duplicate cache storage for actions that use Gradle
  • Cache Lexer and Parser
  • Deleted code inspection because it is performed locally
  • Deleted label creation process before creating update PR for CHANGELOG.md
  • Deleted unnecessary comments

@github-actions github-actions bot added the ci CI/CD fixes label Mar 14, 2025
@xterao xterao requested a review from Copilot March 14, 2025 04:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors the GitHub Actions workflows to improve caching for Lexer/Parser generation and remove redundant processing steps.

  • Introduces caching for generated Lexer/Parser files with conditional generation based on cache hit.
  • Removes unnecessary steps like duplicate error-prone label creation and local code inspections.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/build.yml Refactors build process including caching for Lexer/Parser and updates the build steps.
.github/workflows/update_changelog.yml Removes the label creation process and adds cache-read-only configuration for Gradle.
.github/workflows/release.yml Adds cache-read-only setup for Gradle to ensure consistency between jobs.
Comments suppressed due to low confidence (1)

.github/workflows/build.yml:75

  • Verify that removing the version prefix (e.g., '0.3.1-') for the plugin version is intentional to avoid unexpected versioning issues.
run: ./gradlew buildPlugin -PpluginVersion=${{ github.run_number }}

@xterao xterao linked an issue Mar 14, 2025 that may be closed by this pull request
@xterao xterao merged commit e371fa0 into main Mar 14, 2025
4 checks passed
@xterao xterao deleted the ci/control-actions-cache branch March 14, 2025 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Controlling cache for release actions and CHANGELOG updates

2 participants