-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.3 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Gradle Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
distribution: ['temurin']
fail-fast: false
name: ${{ matrix.os }} JDK 22
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
# Setup JDK 21 & JDK 22 to make JDK 22 available to the Gradle Java Toolchains feature
# When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself
java-version: |
22
21
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install secp256k1 with Nix
run: nix profile install nixpkgs#secp256k1
- name: Build with Gradle
run: ./gradlew build
- name: Run Java & Kotlin Examples
run: ./gradlew run runEcdsa