-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade zcash_script to zcashd v5.5.0 (#84)
* Update dependencies to match zcashd v5.5.0 * Update dependencies to match Zebra main branch * Update release instructions * Add module docs for the build script to avoid warnings * Update bridge file list to match the latest zcashd * Ignore some emacs temporary files * Standardise directory include paths in Cargo.toml * Add extra info to cxx_gen errors * Add additional Rust dependencies needed to compile * Ignore some expected clippy lints * Silence a C compiler macro redefinition warning * Standardise directory paths in build.rs * fix cxxbridge code generation * Update Cargo.lock * Use include!() for bridge.rs * Add a changelog entry for the next release * Fix a warning by adding docs for the crate * Remove previous depend/zcash * Squashed 'depend/zcash/' content from commit eb80047476 git-subtree-dir: depend/zcash git-subtree-split: eb80047476e9c0db3524f647d412faf8d4a584ee * Update depend/zcash to v5.5.0 ```sh git subtree add -P depend/zcash https://github.com/zcash/zcash.git v5.5.0 --squash git rm depend/zcash/Cargo.toml ``` --------- Co-authored-by: Conrado Gouvea <[email protected]>
- Loading branch information
1 parent
27f9e77
commit 5cfaef7
Showing
325 changed files
with
14,679 additions
and
9,820 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
target | ||
*.iml | ||
Cargo.lock | ||
Cargo.lock | ||
.\#* |
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,112 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Tier ${{ matrix.tier }} platform ${{ matrix.platform }} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.tier == 3 }} | ||
strategy: | ||
matrix: | ||
include: | ||
- name: ubuntu-20.04 | ||
tier: 1 | ||
platform: Ubuntu 20.04 | ||
os: ubuntu-20.04 | ||
|
||
- name: macos-11 | ||
tier: 3 | ||
platform: macOS Big Sur 11 | ||
os: macos-11 | ||
brew_deps: > | ||
autoconf | ||
automake | ||
coreutils | ||
libtool | ||
pkgconfig | ||
- name: mingw32 | ||
tier: 3 | ||
platform: Windows (64-bit MinGW) | ||
os: ubuntu-latest | ||
cross_deps: > | ||
mingw-w64 | ||
host: HOST=x86_64-w64-mingw32 | ||
|
||
- name: aarch64-linux | ||
tier: 3 | ||
platform: ARM64 Linux | ||
os: ubuntu-latest | ||
cross_deps: > | ||
g++-aarch64-linux-gnu | ||
host: HOST=aarch64-linux-gnu | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Homebrew build dependencies | ||
if: matrix.brew_deps != '' | ||
run: brew install ${{ matrix.brew_deps }} | ||
|
||
- name: Install cross-compilation build dependencies | ||
if: matrix.cross_deps != '' | ||
run: sudo apt install ${{ matrix.cross_deps }} | ||
|
||
- name: Configure MinGW to use POSIX variant | ||
if: matrix.name == 'mingw32' | ||
run: | | ||
sudo update-alternatives --set x86_64-w64-mingw32-gcc $(update-alternatives --query x86_64-w64-mingw32-gcc | grep Alternative | grep posix | cut -d' ' -f2) | ||
sudo update-alternatives --set x86_64-w64-mingw32-g++ $(update-alternatives --query x86_64-w64-mingw32-g++ | grep Alternative | grep posix | cut -d' ' -f2) | ||
- name: Cache built dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: depends/built | ||
key: ${{ matrix.name }}-built-${{ hashFiles('depends/Makefile', 'depends/funcs.mk') }}-${{ hashFiles('depends/packages/*.mk', 'depends/patches/**/*') }} | ||
restore-keys: | | ||
${{ matrix.name }}-built-${{ hashFiles('depends/Makefile', 'depends/funcs.mk') }}- | ||
- name: Prepare ccache timestamp | ||
id: ccache_cache_timestamp | ||
shell: bash | ||
run: echo "timestamp=$(date +'%Y-%m-%d-%H;%M;%S')" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Cache ccache files | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/ccache | ||
key: ${{ matrix.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} | ||
restore-keys: | | ||
${{ matrix.name }}-ccache- | ||
- name: Build zcashd | ||
id: build | ||
run: > | ||
${{ matrix.host }} | ||
./zcutil/build.sh | ||
-j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" | ||
- name: Build zcashd with libraries enabled | ||
if: ${{ always() && steps.build.outcome == 'success' }} | ||
run: > | ||
CONFIGURE_FLAGS="--with-libs" | ||
${{ matrix.host }} | ||
./zcutil/build.sh | ||
-j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" | ||
- name: Build zcashd with wallet disabled | ||
if: ${{ always() && steps.build.outcome == 'success' }} | ||
run: > | ||
CONFIGURE_FLAGS="--disable-wallet" | ||
${{ matrix.host }} | ||
./zcutil/build.sh | ||
-j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" | ||
- name: Build zcashd with mining disabled | ||
if: ${{ always() && steps.build.outcome == 'success' }} | ||
run: > | ||
CONFIGURE_FLAGS="--disable-mining" | ||
${{ matrix.host }} | ||
./zcutil/build.sh | ||
-j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" |
Oops, something went wrong.