Skip to content

Commit e39b8bf

Browse files
committed
drop compatibility with old versions of java
1 parent e9629c5 commit e39b8bf

1 file changed

Lines changed: 2 additions & 32 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ jobs:
3838

3939
unit:
4040
runs-on: ubuntu-latest
41-
strategy:
42-
matrix:
43-
java: [21]
44-
4541
steps:
4642
- name: Checkout code
4743
uses: actions/checkout@v2
@@ -63,39 +59,13 @@ jobs:
6359
- name: Set LD_LIBRARY_PATH
6460
run: echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.nix-profile/lib" >> $GITHUB_ENV
6561

66-
- name: Setup Cache for secp256k1-jdk repo
67-
uses: actions/cache@v2
68-
with:
69-
path: |
70-
~/secp256k1-jdk
71-
key: ${{ runner.os }}-secp256k1-jdk-repo
72-
restore-keys: |
73-
${{ runner.os }}-secp256k1-jdk-repo
74-
75-
- name: Clone secp256k1-jdk if not cached
76-
run: |
77-
if [ ! -d "$HOME/secp256k1-jdk" ]; then
78-
git clone https://gitlab.com/bitcoinj/secp256k1-jdk.git $HOME/secp256k1-jdk
79-
fi
80-
81-
- name: Use Java Version ${{ matrix.java }}
62+
- name: Use Java Version 22
8263
uses: actions/setup-java@v2
8364
with:
8465
distribution: "adopt"
85-
java-version: ${{ matrix.java }}
66+
java-version: "22"
8667
cache: "gradle"
8768

88-
- name: Build secp256k1-jdk
89-
run: |
90-
$HOME/secp256k1-jdk/gradlew -p $HOME/secp256k1-jdk build -x test \
91-
-PjavaToolchainVersion=21
92-
-PsourceCompatibility=21
93-
-PtargetCompatibility=21
94-
-PoptionsRelease=21
95-
96-
cp $HOME/secp256k1-jdk/secp256k1-api/build/libs/secp256k1-api-0.0.1.jar ./libs
97-
cp $HOME/secp256k1-jdk/secp256k1-foreign/build/libs/secp256k1-foreign-0.0.1.jar ./libs
98-
9969
- name: Install
10070
run: gradle dependencies
10171

0 commit comments

Comments
 (0)