-
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.
- Loading branch information
1 parent
30abffc
commit f778ef7
Showing
336 changed files
with
101,656 additions
and
0 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,87 @@ | ||
name: Epilog Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-mac: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: boost | ||
run: brew install boost | ||
- name: libsecp | ||
run: git clone https://github.com/datavetaren/secp256k1-zkp ../secp256k1-zkp | ||
- name: build | ||
run: make all | ||
- name: zip | ||
run: cd bin && zip -r epilog_macosx_catalina_latest.zip epilogd epilog-data | ||
- name: release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: bin/epilog_macosx_catalina_latest.zip | ||
asset_name: epilog_macosx_catalina_latest.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "Latest build of Epilog" | ||
build-linux: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: apt | ||
run: sudo apt update | ||
- name: gdb | ||
run: sudo apt-get install gdb | ||
- name: boost | ||
run: sudo apt-get install libboost-all-dev | ||
- name: libsecp | ||
run: git clone https://github.com/datavetaren/secp256k1-zkp ../secp256k1-zkp | ||
- name: build | ||
run: make all | ||
- name: zip | ||
run: cd bin && zip -r epilog_linux_ubuntu_18_latest.zip epilogd epilog-data | ||
- name: release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: bin/epilog_linux_ubuntu_18_latest.zip | ||
asset_name: epilog_linux_ubuntu_18_latest.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "Latest build of Epilog" | ||
build-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: download boost | ||
shell: powershell | ||
run: | | ||
$uri = 'http://www.datavetaren.se/boost/boost_1_71_0_msvc14_2.zip' | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | ||
Invoke-WebRequest -Uri $uri -OutFile C:\boost.zip -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome | ||
- name: install boost | ||
shell: cmd | ||
run: | | ||
C: && cd \ && "C:\Program Files\7-Zip\7z.exe" x -tzip C:\boost.zip | ||
- name: libsecp | ||
run: git clone https://github.com/datavetaren/secp256k1-zkp ../secp256k1-zkp | ||
- name: build | ||
shell: cmd | ||
run: make.bat all | ||
- name: zip | ||
shell: cmd | ||
run: | | ||
cd bin && "C:\Program Files\7-Zip\7z.exe" a -tzip -r epilog_windows_10_latest.zip epilogd.exe epilog-data | ||
- name: release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: bin/epilog_windows_10_latest.zip | ||
asset_name: epilog_windows_10_latest.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "Latest build of Epilog" |
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,63 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Compiled binaries | ||
bin/ | ||
out/ | ||
|
||
compile_commands.json | ||
.vscode/ |
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 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 The Epilog Developers | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,32 @@ | ||
# | ||
# Recurse into sub-directories and build and test | ||
# | ||
|
||
MODULES := secp256k1 common db interp terminal ec coin pow global node wallet main | ||
|
||
yellow="\033[0;33m" | ||
off="\033[0m" | ||
|
||
.PHONY: all | ||
|
||
all: | ||
@echo $(yellow)$(bold) Modules to check: $(MODULES) $(off); | ||
@for dir in $(addprefix src/, $(MODULES)); do \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
echo $(yellow)$(bold) Building $$dir $(off); \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
$(MAKE) -C $$dir -- $(MAKECMDGOALS) || exit 1; \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
echo $(yellow)$(bold) Testing $$dir $(off); \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
$(MAKE) -C $$dir -- test $(MAKECMDGOALS) || exit 1; \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
echo $(yellow)$(bold) Scripting $$dir $(off); \ | ||
echo $(yellow)$(bold) --------------------------------------- $(off); \ | ||
$(MAKE) -C $$dir -- script $(MAKECMDGOALS) || exit 1; \ | ||
done; | ||
|
||
clean: | ||
@rm -rf out | ||
@rm -rf bin | ||
|
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,4 @@ | ||
--- | ||
# We'll use defaults from the LLVM style, but with 4 columns indentation. | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 |
Oops, something went wrong.