-
Notifications
You must be signed in to change notification settings - Fork 436
Add CLDC11 binary compatibility check workflow #4345
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
Closed
google-labs-jules
wants to merge
2
commits into
master
from
cldc11-compatibility-check-5063691584105636391
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: CLDC11 Compatibility Check | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - 'Ports/CLDC11/**' | ||
| - 'vm/JavaAPI/**' | ||
| - '.github/workflows/cldc11-check.yml' | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| paths: | ||
| - 'Ports/CLDC11/**' | ||
| - 'vm/JavaAPI/**' | ||
| - '.github/workflows/cldc11-check.yml' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check-cldc11: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/codenameone/codenameone/ci-container:latest | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build APIChecker | ||
| run: JAVA_HOME=$JAVA11_HOME mvn package -f scripts/api-checker/pom.xml | ||
|
|
||
| - name: Build Ports/CLDC11 | ||
| run: | | ||
| cd Ports/CLDC11 | ||
| ant jar | ||
|
|
||
| - name: Build vm/JavaAPI | ||
| run: mvn package -f vm/JavaAPI/pom.xml -DskipTests | ||
|
|
||
| - name: Check CLDC11 vs JavaSE 11 | ||
| run: | | ||
| $JAVA11_HOME/bin/java -jar scripts/api-checker/target/api-checker-1.0-SNAPSHOT.jar \ | ||
| --subject Ports/CLDC11/dist/CLDC11.jar \ | ||
| --reference java11 | ||
|
|
||
| - name: Check CLDC11 vs vm/JavaAPI | ||
| run: | | ||
| $JAVA11_HOME/bin/java -jar scripts/api-checker/target/api-checker-1.0-SNAPSHOT.jar \ | ||
| --subject Ports/CLDC11/dist/CLDC11.jar \ | ||
| --reference vm/JavaAPI/target/classes \ | ||
| --report extra_apis_report.json | ||
|
|
||
| - name: Upload Extra APIs Report | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: extra-apis-report | ||
| path: extra_apis_report.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <groupId>com.codename1.tools</groupId> | ||
| <artifactId>api-checker</artifactId> | ||
| <version>1.0-SNAPSHOT</version> | ||
| <packaging>jar</packaging> | ||
|
|
||
| <properties> | ||
| <maven.compiler.source>11</maven.compiler.source> | ||
| <maven.compiler.target>11</maven.compiler.target> | ||
| <asm.version>9.6</asm.version> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.ow2.asm</groupId> | ||
| <artifactId>asm</artifactId> | ||
| <version>${asm.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.ow2.asm</groupId> | ||
| <artifactId>asm-tree</artifactId> | ||
| <version>${asm.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.ow2.asm</groupId> | ||
| <artifactId>asm-commons</artifactId> | ||
| <version>${asm.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| <version>2.15.2</version> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <version>3.5.0</version> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <transformers> | ||
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
| <mainClass>com.codename1.apichecker.APIChecker</mainClass> | ||
| </transformer> | ||
| </transformers> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.