-
Notifications
You must be signed in to change notification settings - Fork 132
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
Showing
32 changed files
with
67,180 additions
and
30 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 |
---|---|---|
|
@@ -32,12 +32,12 @@ jobs: | |
- name: Install dependencies | ||
shell: alpine.sh --root {0} | ||
run: | | ||
apk add git cmake gcc g++ make | ||
apk add git cmake gcc g++ make linux-headers | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
submodules: recursive | ||
|
||
- name: Build libcurl | ||
shell: alpine.sh {0} | ||
|
@@ -115,7 +115,6 @@ jobs: | |
strategy: | ||
matrix: | ||
config: | ||
- {os: ubuntu-20.04, c: gcc-7, cpp: g++-7, flags: "-Wno-lto-type-mismatch"} | ||
- {os: ubuntu-20.04, c: gcc-11, cpp: g++-11, flags: ""} | ||
- {os: ubuntu-22.04, c: gcc-12, cpp: g++-12, flags: ""} | ||
|
||
|
@@ -129,7 +128,7 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
submodules: recursive | ||
|
||
- name: Build p2pool | ||
run: | | ||
|
@@ -184,7 +183,7 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
submodules: recursive | ||
|
||
- name: Build libcurl | ||
run: | | ||
|
@@ -261,12 +260,12 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
submodules: recursive | ||
|
||
- name: Build libcurl | ||
run: | | ||
cd external/src/curl | ||
cmake . -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF | ||
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF | ||
make -j$(nproc) | ||
cd lib && mkdir .libs && cp libcurl.a .libs | ||
|
@@ -275,22 +274,22 @@ jobs: | |
cd external/src/libuv | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF | ||
make -j$(nproc) | ||
- name: Build libzmq | ||
run: | | ||
cd external/src/libzmq | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF | ||
make -j$(nproc) | ||
- name: Build p2pool | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_STRIP=/usr/bin/aarch64-linux-gnu-strip -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=aarch64 | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=aarch64 | ||
make -j$(nproc) | ||
- name: Run RandomX tests | ||
|
@@ -449,7 +448,7 @@ jobs: | |
cd tests | ||
mkdir build | ||
cd build | ||
cmake .. -G "${{ matrix.config.vs }}" | ||
cmake .. -G "${{ matrix.config.vs }}" -DDEV_WITH_ASAN=ON | ||
& "${{ matrix.config.vspath }}\\MSBuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Debug p2pool_tests.vcxproj | ||
- name: Run tests | ||
|
@@ -579,7 +578,7 @@ jobs: | |
|
||
build-freebsd: | ||
|
||
timeout-minutes: 75 | ||
timeout-minutes: 90 | ||
runs-on: ${{ matrix.os.host }} | ||
|
||
strategy: | ||
|
@@ -596,6 +595,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Delete unused files | ||
run: | | ||
rm -rf .git | ||
rm -rf external/lib | ||
- name: Build p2pool | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
|
@@ -642,15 +646,15 @@ jobs: | |
|
||
build-openbsd: | ||
|
||
timeout-minutes: 75 | ||
timeout-minutes: 90 | ||
runs-on: ${{ matrix.os.host }} | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- name: openbsd | ||
architecture: x86-64 | ||
version: '7.2' | ||
version: '7.4' | ||
host: ubuntu-22.04 | ||
|
||
steps: | ||
|
@@ -659,6 +663,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Delete unused files | ||
run: | | ||
rm -rf .git | ||
rm -rf external/lib | ||
- name: Build p2pool | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
|
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
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
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,8 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_CROSSCOMPILING TRUE) | ||
|
||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
|
||
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) | ||
set(CMAKE_STRIP /usr/bin/aarch64-linux-gnu-strip) |
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,30 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(Tari_gRPC) | ||
|
||
set(HEADERS | ||
proto/gRPC/base_node.pb.h | ||
proto/gRPC/block.pb.h | ||
proto/gRPC/network.pb.h | ||
proto/gRPC/sidechain_types.pb.h | ||
proto/gRPC/transaction.pb.h | ||
proto/gRPC/types.pb.h | ||
proto.h | ||
) | ||
|
||
set(SOURCES | ||
proto/gRPC/base_node.pb.cc | ||
proto/gRPC/block.pb.cc | ||
proto/gRPC/network.pb.cc | ||
proto/gRPC/sidechain_types.pb.cc | ||
proto/gRPC/transaction.pb.cc | ||
proto/gRPC/types.pb.cc | ||
) | ||
|
||
include_directories(../protobuf/src) | ||
include_directories(../protobuf/third_party/abseil-cpp) | ||
|
||
set(DISABLE_WARNINGS ON) | ||
|
||
include(../../../cmake/flags.cmake) | ||
|
||
add_library(Tari_gRPC ${HEADERS} ${SOURCES}) |
Oops, something went wrong.