File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 branches : [ master ]
1111
1212jobs :
13+ # old-school build and jar method. No tests run or compiled.
14+ build-1_6 :
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ # build for java 1.6, however don't run any tests
19+ java : [ 1.6 ]
20+ name : Java ${{ matrix.java }}
21+ steps :
22+ - uses : actions/checkout@v3
23+ - name : Setup java
24+ uses : actions/setup-java@v1
25+ with :
26+ java-version : ${{ matrix.java }}
27+ - name : Compile Java ${{ matrix.java }}
28+ run : |
29+ mkdir -p target/classes
30+ javac -version
31+ javac -d target/classes/ src/main/java/org/json/*.java
32+ - name : Create java ${{ matrix.java }} JAR
33+ run : |
34+ jar cvf target/org.json.jar -C target/classes .
35+ - name : Upload JAR ${{ matrix.java }}
36+ if : ${{ always() }}
37+ uses : actions/upload-artifact@v3
38+ with :
39+ name : Create java ${{ matrix.java }} JAR
40+ path : target/*.jar
1341 build :
1442 runs-on : ubuntu-latest
1543 strategy :
You can’t perform that action at this time.
0 commit comments