Skip to content

Commit

Permalink
Cleanup soot-wrapper-test
Browse files Browse the repository at this point in the history
  • Loading branch information
4ernovm committed Feb 23, 2024
1 parent 6ab0365 commit 12fe8de
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/soot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ jobs:
- name: Pull JAR from previous release if already built
# if: steps.calc-checksum.outputs.hash == steps.calc-checksum.outputs.prev_hash
run: |
curl -LJO https://github.com/${{ github.repository }}/releases/download/${{ steps.calc-checksum.outputs.release_tag }}/soot-wrapper-${{ matrix.java-version }}.jar
curl -LJO https://github.com/${{ github.repository }}/releases/download/${{ steps.calc-checksum.outputs.release_tag }}/soot-wrapper-${{ matrix.java-version }}.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload JAR from previous release
if: steps.calc-checksum.outputs.hash == steps.calc-checksum.outputs.prev_hash
uses: actions/upload-artifact@v4
with:
name: soot-wrapper-${{ matrix.java-version }}.jar
path: soot-wrapper-${{ matrix.java-version }}.jar

- name: Set up JDK ${{ matrix.java-version }}
if: steps.calc-checksum.outputs.hash != steps.calc-checksum.outputs.prev_hash
uses: actions/setup-java@v4
Expand All @@ -63,13 +56,6 @@ jobs:
zip -r soot-wrapper-${{ matrix.java-version }}.zip java/common/target/*.jar
ls -la
- name: Upload generated JAR
if: steps.calc-checksum.outputs.hash != steps.calc-checksum.outputs.prev_hash
uses: actions/upload-artifact@v4
with:
name: soot-wrapper-${{ matrix.java-version }}
path: java/common/target/*.jar

- name: Store soot-wrapper revision hash
if: steps.calc-checksum.outputs.hash != steps.calc-checksum.outputs.prev_hash
run: |
Expand All @@ -83,6 +69,12 @@ jobs:
path: soot-wrapper-rev-hash.txt
overwrite: 'true'

- name: Upload the archive
uses: actions/upload-artifact@v4
with:
name: soot-wrapper-${{ matrix.java-version }}.zip
path: soot-wrapper-${{ matrix.java-version }}.zip

goreleaser-test:
runs-on: ubuntu-latest
needs: soot-wrapper-test
Expand All @@ -98,7 +90,7 @@ jobs:

- name: Ensure files are in place
run: |
ls -la soot-wrapper-11
ls -la soot-wrapper-17
ls -la soot-wrapper-21
ls -la soot-wrapper-11.zip
ls -la soot-wrapper-17.zip
ls -la soot-wrapper-21.zip
cat soot-wrapper-rev-hash.txt/soot-wrapper-rev-hash.txt

0 comments on commit 12fe8de

Please sign in to comment.