]> source.dussan.org Git - gitblit.git/commitdiff
ci: Add build with Java 7 on Linux
authorFlorian Zschocke <florian.zschocke@devolo.de>
Fri, 10 Jan 2020 22:24:08 +0000 (23:24 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Fri, 10 Jan 2020 22:24:08 +0000 (23:24 +0100)
Add a job to run a build with Java 7.
The job currently only runs on Linux.
In order to run on Java 7, an old Ant version is downloaded and
installed. We use moxie+ant for this, so we build with moxie.

.github/workflows/ci-build.yml

index c54987013b74a8e55902a0a4591e8c24eb0bc5ec..f3531f6e3fe7d671143376a475f3675805253e1f 100644 (file)
@@ -29,3 +29,32 @@ jobs:
 
       - name: Build with Ant
         run: ant test
+
+  build_j7:
+    name: Build and test on Java 7
+    runs-on: ubuntu-latest
+    
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v1
+        with:
+          submodules: true
+
+      - name: Setup Java 7
+        uses: actions/setup-java@v1
+        with:
+          java-version: 7
+
+      - name: Report Java version
+        run: |
+          java -version
+          javac -version
+
+      - name: Setup Moxie
+        run: |
+          wget http://gitblit.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.9.4/moxie+ant-0.9.4.tar.gz
+          tar -xzf moxie+ant-0.9.4.tar.gz
+          moxie-0.9.4/bin/moxie -version
+
+      - name: Build with Moxie
+        run:  moxie-0.9.4/bin/moxie