Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries committed Aug 5, 2024
1 parent 3f705ab commit 58ca8d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [21, 22]
java: [17, 22]

steps:
- name: Checkout code
Expand All @@ -67,15 +67,19 @@ jobs:
- name: Use Java Version ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: "zulu"
distribution: "adopt"
java-version: ${{ matrix.java }}
cache: "gradle"

- name: Dowload and compile libsecp256k1
- name: Download and compile secp256k1-jdk
run: |
git clone https://gitlab.com/bitcoinj/secp256k1-jdk.git
cd secp256k1-jdk
./gradlew build
if [ ${{ matrix.java }} -ge 22 ]; then
./gradlew -PjavaPath=$JAVA_HOME/lib build
else
./gradlew build
fi
cp secp256k1-api/build/libs/secp256k1-api-0.0.1.jar ../lib
cp secp256k1-foreign/build/libs/secp256k1-foreign-0.0.1.jar ../lib
rm -rf secp256k1-jdk
Expand Down

0 comments on commit 58ca8d7

Please sign in to comment.