forked from bitcoinj/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Groestlcoin/upgrade-0.16.1
Upgrade 0.16.1
- Loading branch information
Showing
476 changed files
with
24,826 additions
and
120,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
java: ['8', '11', '17'] | ||
distribution: ['temurin'] | ||
gradle: ['7.2'] | ||
fail-fast: false | ||
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java }} | ||
- name: Build Groestld library | ||
run: | | ||
cd contrib/groestld | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . | ||
cd ../../.. | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v1 | ||
with: | ||
gradle-version: ${{ matrix.gradle }} | ||
arguments: assemble --stacktrace | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: groestlcoinj-core-${{ matrix.java }}-${{ matrix.os }} | ||
path: | | ||
core/build/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Checkpoints | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: set NOW env | ||
run: echo "NOW=$(date +'%d.%m.%Y')" >> $GITHUB_ENV | ||
|
||
- name: Build mainnet checkpoints | ||
run: ./tools/build-checkpoints --net=PROD | ||
|
||
- name: Build testnet checkpoints | ||
run: ./tools/build-checkpoints --net=TEST | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: checkpoints-${{ env.NOW }} | ||
path: | | ||
tools/checkpoints.txt | ||
tools/checkpoints-testnet.txt | ||
if-no-files-found: error | ||
retention-days: 7 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: checkpoints-${{ env.NOW }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Java CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
java: ['8', '11', '17'] | ||
distribution: ['temurin'] | ||
gradle: ['7.2'] | ||
include: | ||
# Special case to test something close to Debian config with the oldest supported (standard) Gradle on Ubuntu | ||
- os: ubuntu-latest | ||
java: '11' | ||
distribution: 'temurin' | ||
gradle: '4.10.3' | ||
fail-fast: false | ||
name: JAVA ${{ matrix.distribution }} ${{ matrix.java }} OS ${{ matrix.os }} Gradle ${{ matrix.gradle }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java }} | ||
- name: Build Groestld library | ||
run: | | ||
cd contrib/groestld | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . | ||
cd ../../.. | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v1 | ||
with: | ||
gradle-version: ${{ matrix.gradle }} | ||
arguments: build --stacktrace | ||
- name: Upload Test Results and Reports | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: groestlcoinj-core-test-results-jdk${{ matrix.java }}-${{ matrix.os }} | ||
path: | | ||
core/build/reports/tests/test/ | ||
core/build/test-results/test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
image: debian:bullseye-slim | ||
|
||
before_script: | ||
- apt-get update | ||
- apt-get -y upgrade | ||
- apt-get -y install openjdk-11-jdk gradle | ||
|
||
build: | ||
script: | ||
- gradle build --stacktrace |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Contrib | ||
|
||
This folder contains some required and optional components for groestlcoinj | ||
* groestld (optional) | ||
|
||
Tools such as Java should already be installed. | ||
|
||
#Requirements for Building | ||
|
||
## Linux or WSL (eg Ubuntu <= 21.x) | ||
```shell | ||
sudo apt install build-essential | ||
``` | ||
|
||
## Mac | ||
No additional instructions | ||
|
||
## Windows | ||
``` | ||
choco install mingw -y | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.11.0) | ||
|
||
project(x11) | ||
find_package(Java COMPONENTS Development) | ||
find_package(JNI REQUIRED) | ||
|
||
if (JNI_FOUND) | ||
message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}") | ||
message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}") | ||
endif() | ||
|
||
add_library(groestld SHARED groestl.c hashblock.cpp) | ||
include_directories(${JNI_INCLUDE_DIRS}) |
Oops, something went wrong.