forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 0
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 dashpay#42 from kittywhiskers/relic
build: commit relic-toolkit/relic@aecdcae to source tree as vendored
- Loading branch information
Showing
696 changed files
with
226,025 additions
and
31 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
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,7 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# 4 space indentation | ||
[*.{cmake,c,h}] | ||
indent_style = tab | ||
indent_size = 4 |
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,48 @@ | ||
name: Basic configuration (16 bits) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
pull_request: | ||
branches: | ||
- '**' # all branches | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "Ubuntu Latest - GCC", | ||
artifact: "linux-gcc.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "gcc", | ||
} | ||
- { | ||
name: "Ubuntu Latest - Clang", | ||
artifact: "linux-clang.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "clang", | ||
} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run CMake (standard) | ||
if: ${{ !(runner.os == 'Windows') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DWSIZE=16 -DSEED= -DBENCH=0 -DTESTS=10 .. | ||
- name: CMake Build | ||
run: cmake --build build | ||
|
||
- name: CMake Test | ||
run: | | ||
cd build | ||
ctest --verbose . |
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,97 @@ | ||
name: Basic configuration (32 bits) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
pull_request: | ||
branches: | ||
- '**' # all branches | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "Windows Latest - MSVC", | ||
artifact: "windows-msvc.tar.xz", | ||
os: windows-latest, | ||
cc: "cl", | ||
} | ||
- { | ||
name: "Windows Latest - MinGW", | ||
artifact: "windows-mingw.tar.xz", | ||
os: windows-latest, | ||
cc: "gcc" | ||
} | ||
- { | ||
name: "Ubuntu Latest - GCC", | ||
artifact: "linux-gcc.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "gcc", | ||
} | ||
- { | ||
name: "Ubuntu Latest - Clang", | ||
artifact: "linux-clang.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "clang", | ||
} | ||
- { | ||
name: "MacOS Latest", | ||
os: macos-latest, | ||
cc: "clang", | ||
} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set Windows enviroment | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'cl') }} | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Set MinGW enviroment | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'gcc') }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
install: >- | ||
git | ||
base-devel | ||
gcc | ||
cmake | ||
update: true | ||
|
||
- name: Run CMake (Win) | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'cl') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DWSIZE=32 -DSEED= -DBENCH=0 -G "NMake Makefiles" .. | ||
- name: Run CMake (MingW) | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'gcc') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DWSIZE=32 -DSEED= -DBENCH=0 -G "MinGW Makefiles" .. | ||
- name: Run CMake (standard) | ||
if: ${{ !(runner.os == 'Windows') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DWSIZE=32 -DSEED= -DBENCH=0 .. | ||
- name: CMake Build | ||
run: cmake --build build | ||
|
||
- name: CMake Test | ||
run: | | ||
cd build | ||
ctest --verbose . |
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,48 @@ | ||
name: Basic configuration (8 bits) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
pull_request: | ||
branches: | ||
- '**' # all branches | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "Ubuntu Latest - GCC", | ||
artifact: "linux-gcc.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "gcc", | ||
} | ||
- { | ||
name: "Ubuntu Latest - Clang", | ||
artifact: "linux-clang.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "clang", | ||
} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run CMake (standard) | ||
if: ${{ !(runner.os == 'Windows') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DWSIZE=8 -DSEED= -DBENCH=0 -DTESTS=10 .. | ||
- name: CMake Build | ||
run: cmake --build build | ||
|
||
- name: CMake Test | ||
run: | | ||
cd build | ||
ctest --verbose . |
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,91 @@ | ||
name: BLS12-381 configuration (ASM) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
pull_request: | ||
branches: | ||
- '**' # all branches | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
#- { | ||
#name: "Windows Latest - MinGW", | ||
#artifact: "windows-mingw.tar.xz", | ||
#os: windows-latest, | ||
#cc: "gcc" | ||
#} | ||
- { | ||
name: "Ubuntu Latest - GCC", | ||
artifact: "linux-gcc.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "gcc", | ||
} | ||
- { | ||
name: "Ubuntu Latest - Clang", | ||
artifact: "linux-clang.tar.xz", | ||
os: ubuntu-latest, | ||
cc: "clang", | ||
} | ||
- { | ||
name: "MacOS Latest", | ||
os: macos-latest, | ||
cc: "clang", | ||
} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Linux Dependencies | ||
if: runner.os == 'Linux' | ||
run: sudo apt install libgmp-dev | ||
|
||
- name: Install MacOS Dependencies | ||
if: runner.os == 'MacOS' | ||
run: brew install gmp | ||
|
||
- name: Set MinGW enviroment | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'gcc') }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
install: >- | ||
git | ||
base-devel | ||
gcc | ||
cmake | ||
gmp | ||
update: true | ||
|
||
- name: Run CMake (MingW) | ||
if: ${{ (runner.os == 'Windows') && (matrix.config.cc == 'gcc') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -G "MinGW Makefiles" .. | ||
../preset/x64-pbc-bls12-381.sh . | ||
cmake -DSEED= -DBENCH=0 -DSTBIN=off -DRAND=HASHD . | ||
- name: Run CMake (standard) | ||
if: ${{ !(runner.os == 'Windows') }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cd build | ||
../preset/x64-pbc-bls12-381.sh ../ | ||
cmake -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DSEED= -DBENCH=0 . | ||
- name: CMake Build | ||
run: cmake --build build | ||
|
||
- name: CMake Test | ||
run: | | ||
cd build | ||
ctest --verbose . |
Oops, something went wrong.