Skip to content

Commit

Permalink
[Build] Enable API checks in CI builds
Browse files Browse the repository at this point in the history
Fixes #1003
  • Loading branch information
HannesWell committed Mar 12, 2024
1 parent d06d1a1 commit 3255c85
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/maven.yml
Expand Up @@ -62,10 +62,11 @@ jobs:
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
with:
run: >-
mvn --batch-mode -V -U
mvn --batch-mode -V -e -U
--threads 1C
-DforkCount=1
-Dnative=${{ matrix.config.native }}
-Papi-check
-Dcompare-version-with-baselines.skip=true
-Dtycho.baseline.replace=none
--fail-at-end
Expand Down
4 changes: 3 additions & 1 deletion Jenkinsfile
Expand Up @@ -299,7 +299,9 @@ pipeline {
dir('eclipse.platform.swt') {
sh '''
mvn clean verify \
--batch-mode --threads 1C -DforkCount=0 \
--batch-mode --threads 1C -V -e -U -DforkCount=0 \
-Papi-check \
-Dtycho.apitools.debug \
-Dcompare-version-with-baselines.skip=false \
-Dorg.eclipse.swt.tests.junit.disable.test_isLocal=true \
-Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true
Expand Down
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.swt.cocoa.macosx.aarch64" version="2">
<resource path="Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java" type="org.eclipse.swt.widgets.Display">
<filter id="336744520">
<message_arguments>
<message_argument value="@noextend"/>
<message_argument value="org.eclipse.swt.widgets.Display"/>
</message_arguments>
</filter>
</resource>
</component>
Expand Up @@ -38,6 +38,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/cocoa,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=macosx
Expand Down
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.swt.cocoa.macosx.x86_64" version="2">
<resource path="Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java" type="org.eclipse.swt.widgets.Display">
<filter id="336744520">
<message_arguments>
<message_argument value="@noextend"/>
<message_argument value="org.eclipse.swt.widgets.Display"/>
</message_arguments>
</filter>
</resource>
</component>
Expand Up @@ -38,6 +38,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/cocoa,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=macosx
Expand Down
Expand Up @@ -39,6 +39,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common,\
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=linux
Expand Down
Expand Up @@ -39,6 +39,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common,\
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=linux
Expand Down
Expand Up @@ -39,6 +39,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common,\
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=linux
Expand Down
2 changes: 1 addition & 1 deletion binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties
Expand Up @@ -40,7 +40,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common,\
../../bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk

output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=linux
Expand Down
Expand Up @@ -34,6 +34,7 @@ source.. = \
../../bundles/org.eclipse.swt/Eclipse SWT Browser/win32,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32,\
../../bundles/org.eclipse.swt/Eclipse SWT OpenGL/common
output.. = bin/
src.includes = about.html,about_files/

pom.model.property.os=win32
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Expand Up @@ -41,7 +41,6 @@
<sonar.c.file.suffixes>-</sonar.c.file.suffixes>
<sonar.cpp.file.suffixes>-</sonar.cpp.file.suffixes>
<sonar.objc.file.suffixes>-</sonar.objc.file.suffixes>
<skipAPIAnalysis>true</skipAPIAnalysis>
</properties>

<!--
Expand Down

0 comments on commit 3255c85

Please sign in to comment.