-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (57 loc) · 1.82 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Gradle Build
on: [push, pull_request, workflow_dispatch]
jobs:
validate_gradle_wrapper:
name: "Validate Gradle Wrapper"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v4
build_gradle:
needs: validate_gradle_wrapper
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macOS-14]
distribution: ['temurin']
fail-fast: false
name: ${{ matrix.os }} JDK 23
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
# When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself
java-version: |
23
cache: 'gradle'
- name: Install Nix
uses: cachix/install-nix-action@v30
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
build_nix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macOS-14]
fail-fast: false
name: ${{ matrix.os }} Nix
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install secp256k1 with Nix
run: nix profile install nixpkgs#secp256k1
- name: Build in Nix development shell
run: nix develop -c gradle build run runEcdsa