Skip to content

Commit

Permalink
Introduce soot wrapper build job
Browse files Browse the repository at this point in the history
  • Loading branch information
4ernovm committed Feb 16, 2024
1 parent 6c6d8a3 commit 8db3222
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,43 @@ jobs:
sudo -u aur git config user.name "Debricked build bot"
git config --global --add safe.directory "$PWD"
make push
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: mvn clean package

- 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: target/*.jar
51 changes: 51 additions & 0 deletions .github/workflows/soot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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: mvn clean package

- 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: target/*.jar

0 comments on commit 8db3222

Please sign in to comment.