Skip to content

Introduce soot wrapper build job #3

Introduce soot wrapper build job

Introduce soot wrapper build job #3

Workflow file for this run

name: Soot
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
soot-wrapper:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 11, 17, 21 ]
steps:
- uses: actions/checkout@v2
with:
repository: 'debricked/soot-wrapper'
- name: Calculate checksum
id: calc-checksum
run: echo "::set-output name=hash::$(git rev-parse HEAD)"
- name: Cache JARs
uses: actions/cache@v2
id: cache-jars
with:
path: |
target/*.jar
key: ${{ runner.os }}-soot-wrapper-${{ matrix.java-version }}-${{ steps.calc-checksum.outputs.hash }}
- name: Set up JDK ${{ matrix.java-version }}
if: steps.cache-jars.outputs.cache-hit != 'true'
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
- name: Build with Maven
if: steps.cache-jars.outputs.cache-hit != 'true'
run: |
cd java/common/
mvn clean package -X -DskipTests
- name: Upload JAR if cache missed
if: steps.cache-jars.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v2
with:
name: soot-wrapper-${{ matrix.java-version }}.jar
path: java/common/target/*.jar