-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into relocate_RPCerr
- Loading branch information
Showing
16 changed files
with
415 additions
and
1,250 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,16 +54,14 @@ jobs: | |
build_dir: .build | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: check environment | ||
run: | | ||
echo ${PATH} | tr ':' '\n' | ||
conan --version | ||
cmake --version | ||
env | sort | ||
- name: configure Conan | ||
env: | ||
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod | ||
run: | | ||
conan profile new default --detect | ||
conan profile update settings.compiler.cppstd=20 default | ||
|
@@ -73,35 +71,19 @@ jobs: | |
conan profile update env.CC=${{ matrix.profile.cc }} default | ||
conan profile update env.CXX=${{ matrix.profile.cxx }} default | ||
conan profile update conf.tools.build:compiler_executables='{"c": "${{ matrix.profile.cc }}", "cpp": "${{ matrix.profile.cxx }}"}' default | ||
# Do not quote the URL. An empty string will be accepted (with | ||
# a non-fatal warning), but a missing argument will not. | ||
conan remote add ripple ${{ env.CONAN_URL }} --insert 0 | ||
- name: try to authenticate to ripple Conan remote | ||
id: remote | ||
run: | | ||
echo outcome=$(conan user --remote ripple ${{ secrets.CONAN_USERNAME }} --password ${{ secrets.CONAN_TOKEN }} >&2 && echo success || echo failure) | tee ${GITHUB_OUTPUT} | ||
- name: archive profile | ||
# Create this archive before dependencies are added to the local cache. | ||
run: tar -czf conan.tar -C ~/.conan . | ||
- name: list missing binaries | ||
id: binaries | ||
# Print the list of dependencies that would need to be built locally. | ||
# A non-empty list means we have "failed" to cache binaries remotely. | ||
run: | | ||
echo missing=$(conan info . --build missing --settings build_type=${{ matrix.configuration }} --json 2>/dev/null | grep '^\[') | tee ${GITHUB_OUTPUT} | ||
- name: build dependencies | ||
if: (steps.binaries.outputs.missing != '[]') | ||
uses: ./.github/actions/dependencies | ||
env: | ||
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod | ||
CONAN_LOGIN_USERNAME_RIPPLE: ${{ secrets.CONAN_USERNAME }} | ||
CONAN_PASSWORD_RIPPLE: ${{ secrets.CONAN_TOKEN }} | ||
with: | ||
configuration: ${{ matrix.configuration }} | ||
- name: upload dependencies to remote | ||
if: (steps.binaries.outputs.missing != '[]') && (steps.remote.outputs.outcome == 'success') | ||
run: conan upload --remote ripple '*' --all --parallel --confirm | ||
- name: recreate archive with dependencies | ||
if: (steps.binaries.outputs.missing != '[]') && (steps.remote.outputs.outcome == 'failure') | ||
run: tar -czf conan.tar -C ~/.conan . | ||
- name: upload archive | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }} | ||
path: conan.tar | ||
|
@@ -130,7 +112,7 @@ jobs: | |
build_dir: .build | ||
steps: | ||
- name: download cache | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }} | ||
- name: extract cache | ||
|
@@ -139,15 +121,16 @@ jobs: | |
tar -xzf conan.tar -C ~/.conan | ||
- name: check environment | ||
run: | | ||
env | sort | ||
echo ${PATH} | tr ':' '\n' | ||
conan --version | ||
cmake --version | ||
env | sort | ||
ls ~/.conan | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: dependencies | ||
uses: ./.github/actions/dependencies | ||
env: | ||
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod | ||
with: | ||
configuration: ${{ matrix.configuration }} | ||
- name: build | ||
|
@@ -178,7 +161,7 @@ jobs: | |
build_dir: .build | ||
steps: | ||
- name: download cache | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }} | ||
- name: extract cache | ||
|
@@ -194,9 +177,11 @@ jobs: | |
env | sort | ||
ls ~/.conan | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: dependencies | ||
uses: ./.github/actions/dependencies | ||
env: | ||
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod | ||
with: | ||
configuration: ${{ matrix.configuration }} | ||
- name: build | ||
|
@@ -216,15 +201,15 @@ jobs: | |
run: | | ||
mv "${build_dir}/coverage.xml" ./ | ||
- name: archive coverage report | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage.xml | ||
path: coverage.xml | ||
retention-days: 30 | ||
- name: upload coverage report | ||
uses: wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
action: codecov/codecov-action@v4 | ||
with: | | ||
files: coverage.xml | ||
fail_ci_if_error: true | ||
|
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,27 @@ | ||
sources: | ||
"6.29.5": | ||
url: "https://github.com/facebook/rocksdb/archive/refs/tags/v6.29.5.tar.gz" | ||
sha256: "ddbf84791f0980c0bbce3902feb93a2c7006f6f53bfd798926143e31d4d756f0" | ||
"6.27.3": | ||
url: "https://github.com/facebook/rocksdb/archive/refs/tags/v6.27.3.tar.gz" | ||
sha256: "ee29901749b9132692b26f0a6c1d693f47d1a9ed8e3771e60556afe80282bf58" | ||
"6.20.3": | ||
url: "https://github.com/facebook/rocksdb/archive/refs/tags/v6.20.3.tar.gz" | ||
sha256: "c6502c7aae641b7e20fafa6c2b92273d935d2b7b2707135ebd9a67b092169dca" | ||
"8.8.1": | ||
url: "https://github.com/facebook/rocksdb/archive/refs/tags/v8.8.1.tar.gz" | ||
sha256: "056c7e21ad8ae36b026ac3b94b9d6e0fcc60e1d937fc80330921e4181be5c36e" | ||
patches: | ||
"6.29.5": | ||
- patch_file: "patches/6.29.5-0001-add-include-cstdint-for-gcc-13.patch" | ||
patch_description: "Fix build with gcc 13 by including cstdint" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/facebook/rocksdb/pull/11118" | ||
- patch_file: "patches/6.29.5-0002-exclude-thirdparty.patch" | ||
patch_description: "Do not include thirdparty.inc" | ||
patch_type: "portability" | ||
"6.27.3": | ||
- patch_file: "patches/6.27.3-0001-add-include-cstdint-for-gcc-13.patch" | ||
patch_description: "Fix build with gcc 13 by including cstdint" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/facebook/rocksdb/pull/11118" |
Oops, something went wrong.