From 3025801b4ac00e77369094739f69472d7276d567 Mon Sep 17 00:00:00 2001 From: Luis Nassif Date: Mon, 23 Oct 2023 18:25:29 -0300 Subject: [PATCH] '#1522: update CI to also build using java 17 --- .github/workflows/maven.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c8dce9bb8a..3aa2a2808a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -111,3 +111,53 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml + + build-java17: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - run: curl -O "https://download.bell-sw.com/java/17.0.9+11/bellsoft-jdk17.0.9+11-linux-amd64-full.tar.gz" + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + jdkFile: ./bellsoft-jdk17.0.9+11-linux-amd64-full.tar.gz + + - name: Load libagdb from cache + id: libagdb + uses: actions/cache@v1 + with: + path: libagdb + key: libagdb + + - name: Compile libagdb + # libagdb (agdbinfo) needs to be built from source + if: steps.libagdb.outputs.cache-hit != 'true' + run: | + sudo apt install git autoconf automake autopoint libtool pkg-config + git clone https://github.com/libyal/libagdb.git && cd libagdb/ && git checkout e858e15 + sudo ./synclibs.sh && sudo ./autogen.sh && sudo ./configure + + - name: Install External Tools + run: | + sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel && sudo apt-get update && sudo apt-get install \ + libscca-utils rifiuti2 libevtx-utils libevt-utils \ + libmsiecf-utils=20181227-2build1 \ + pff-tools=20180714-3build1 \ + libesedb-utils=20181229-3.1build2 \ + tesseract-ocr \ + tesseract-ocr-por \ + imagemagick \ + python3-pip + sudo perl -MCPAN -e 'install Parse::Win32Registry' + pip install jep==4.0.3 + + cd libagdb/ && sudo make install + sudo ldconfig /usr/local/lib + cd .. + sudo apt-get install gsfonts + + - name: Build with Maven + run: mvn -B package --file pom.xml