summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2020-01-10 23:24:08 +0100
committerFlorian Zschocke <florian.zschocke@devolo.de>2020-01-10 23:24:08 +0100
commit8549471ce5bc0602bba8bb00c8b3b885d1854d12 (patch)
tree6365bc2f369ce14b4f72313ed4e4f5684037a57d /.github
parent616fcd1e34ba05de790a8f2745f5d61e032ff51e (diff)
downloadgitblit-8549471ce5bc0602bba8bb00c8b3b885d1854d12.tar.gz
gitblit-8549471ce5bc0602bba8bb00c8b3b885d1854d12.zip
ci: Add build with Java 7 on Linux
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-build.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index c5498701..f3531f6e 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -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