44 pull_request :
55 branches :
66 - master
7+ push :
8+ branches :
9+ - master
710
811jobs :
912 build-linux-jdk8-fx :
@@ -17,22 +20,94 @@ jobs:
1720 with :
1821 java-version : 1.8
1922 java-package : jdk+fx
23+ - name : Cache Maven dependencies
24+ uses : actions/cache@v4
25+ with :
26+ path : ~/.m2
27+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28+ restore-keys : |
29+ ${{ runner.os }}-m2
30+ - name : Run Unit Tests
31+ run : |
32+ cd maven
33+ mvn clean verify -DunitTests=true -pl core-unittests -am -Dmaven.javadoc.skip=true
34+ cd ..
2035 - name : Install dependencies
21- run : sudo apt-get update && sudo apt-get install xvfb
36+ run : |
37+ sudo apt-get update && sudo apt-get install xvfb
38+ wget https://github.com/codenameone/cn1-binaries/archive/refs/heads/master.zip
39+ unzip master.zip -d ..
40+ mv ../cn1-binaries-master ../cn1-binaries
2241 - name : Build with Ant
2342 run : xvfb-run ant test-javase
24-
43+ - name : Build CLDC11 JAR
44+ run : ant -noinput -buildfile Ports/CLDC11/build.xml jar
45+
2546 - name : Build Release
2647 run : ant -noinput -buildfile CodenameOne/build.xml weeklyLibUpdate
2748
49+ - name : Build JavaDocs
50+ run : |
51+ cd CodenameOne
52+ mkdir -p build
53+ mkdir -p build/tempJavaSources
54+ mkdir -p dist
55+ mkdir -p dist/javadoc
56+ wget https://github.com/codenameone/JavaDocSourceEmbed/releases/download/refs%2Fheads%2Fmaster/JavaDocSourceEmbed-1.0-SNAPSHOT.jar
57+ java -jar JavaDocSourceEmbed-1.0-SNAPSHOT.jar src build/tempJavaSources
58+ find build/tempJavaSources ../Ports/CLDC11/src -name "*.java" | /usr/bin/grep -v /impl/ | /usr/bin/xargs javadoc --allow-script-in-comments -protected -d dist/javadoc -windowtitle "Codename One API" || true
59+ cd dist/javadoc
60+ zip -r ../../javadocs.zip *
61+ cd ..
62+
2863 - name : Build iOS Port
2964 run : ant -noinput -buildfile Ports/iOSPort/build.xml jar
3065
3166 - name : Build iOS VM API
3267 run : ant -noinput -buildfile vm/JavaAPI/build.xml jar
3368
69+ - name : Upload a Build Artifact
70+ uses : actions/upload-artifact@v4
71+ with :
72+ name : JavaAPI.jar
73+ path : vm/JavaAPI/dist/JavaAPI.jar
74+
3475 - name : Build iOS VM
3576 run : ant -noinput -buildfile vm/ByteCodeTranslator/build.xml jar
3677
78+ - name : Build CLDC 11 VM
79+ run : ant -noinput -buildfile Ports/CLDC11/build.xml jar
80+
81+ - name : Upload a Build Artifact
82+ uses : actions/upload-artifact@v4
83+ with :
84+ name : ByteCodeTranslator.jar
85+ path : vm/ByteCodeTranslator/dist/ByteCodeTranslator.jar
86+
87+ - name : Upload a Build Artifact
88+ uses : actions/upload-artifact@v4
89+ with :
90+ name : CLDC11.jar
91+ path : Ports/CLDC11/dist/CLDC11.jar
92+
3793 - name : Build Android Port
3894 run : ant -noinput -buildfile Ports/Android/build.xml jar
95+
96+ - name : Packaging Everything
97+ run : zip -j result.zip CodenameOne/javadocs.zip CodenameOne/dist/CodenameOne.jar CodenameOne/updatedLibs.zip Ports/JavaSE/dist/JavaSE.jar build/CodenameOneDist/CodenameOne/demos/CodenameOne_SRC.zip
98+
99+ - name : Copying Files to Server
100+ uses : marcodallasanta/ssh-scp-deploy@v1.0.5
101+ with :
102+ host : ${{ secrets.WP_HOST }}
103+ user : ${{ secrets.WP_USER }}
104+ password : ${{ secrets.WP_PASSWORD }}
105+ local : result.zip
106+
107+ - name : Upload a Build Artifact
108+ uses : actions/upload-artifact@v4
109+ with :
110+ name : JavaSE.jar
111+ path : Ports/JavaSE/dist/JavaSE.jar
112+
113+
0 commit comments