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

chore: Only verify Jdk 9 classes on jdk 11. #1078

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 29, 2024

Motivation:
Polish the script to test across all scala versions on JDK 11.

eg:

Starting verification for with file: stream/target/scala-cli/VerifyJDK9Classes-2.13.sc.
Verification successful for stream/target/scala-cli/VerifyJDK9Classes-2.13.sc.
All verifications successful.

demo: https://github.com/apache/incubator-pekko/actions/runs/7694919153/job/20966708057?pr=1078

@He-Pin He-Pin force-pushed the checkPublishLocalOpt branch 2 times, most recently from ed51f6c to 50074e8 Compare January 29, 2024 10:53
@He-Pin He-Pin marked this pull request as ready for review January 29, 2024 11:03
Copy link
Member

@Roiocam Roiocam left a comment

Choose a reason for hiding this comment

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

LGTM, one picky issue.

generateAndWriteScalaCLIScript(
target,
_ / "scala-cli" / "VerifyJDK9Classes.sc")
generateAndWriteScalaCLIScript(target)
Copy link
Member

Choose a reason for hiding this comment

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

More readable!

exit 1
)
chmod +x .github/workflows/verify-jdk9-classes.sh
.github/workflows/verify-jdk9-classes.sh
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.github/workflows/verify-jdk9-classes.sh
sh github/workflows/verify-jdk9-classes.sh

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's keep it for now, otherwise I have to revaluation it.


echo "Starting verification with Scala-CLI..."

for file in stream/target/scala-cli/*.sc; do
Copy link
Member

Choose a reason for hiding this comment

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

Cool, has expandable capability.

@He-Pin He-Pin merged commit 1b0ee8c into apache:main Jan 29, 2024
18 checks passed
@He-Pin He-Pin deleted the checkPublishLocalOpt branch January 29, 2024 11:58
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.

3 participants