diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index ae822103de..f6443025b0 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -53,7 +53,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release - name: Compress mm2 build output @@ -127,7 +127,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release --target x86_64-apple-darwin - name: Compress mm2 build output @@ -189,7 +189,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release --target aarch64-apple-darwin - name: Compress mm2 build output @@ -252,7 +252,7 @@ jobs: remove-item "./MM_VERSION" } echo $Env:COMMIT_HASH > ./MM_VERSION - Remove-Item -Recurse -Force "$env:USERPROFILE\.cargo\git\checkouts\librustzcash*" + cargo update -p zcash_client_backend cargo build --release - name: Compress mm2 build output @@ -314,7 +314,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib - name: Compress mm2 build output @@ -390,7 +390,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release - name: Compress build output @@ -443,7 +443,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib - name: Compress mm2 build output @@ -519,7 +519,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend export PATH=$PATH:/android-ndk/bin CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib @@ -597,7 +597,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend export PATH=$PATH:/android-ndk/bin CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib diff --git a/.github/workflows/fmt-and-lint.yml b/.github/workflows/fmt-and-lint.yml index f5ea217eee..bf23e1f3f5 100644 --- a/.github/workflows/fmt-and-lint.yml +++ b/.github/workflows/fmt-and-lint.yml @@ -35,7 +35,9 @@ jobs: run: cargo fmt -- --check - name: clippy lint - run: cargo clippy --all-targets --all-features -- --D warnings + run: | + cargo update -p zcash_client_backend + cargo clippy --all-targets --all-features -- --D warnings wasm-lint: name: Wasm Lint Checks @@ -58,4 +60,6 @@ jobs: uses: ./.github/actions/cargo-cache - name: clippy lint - run: cargo clippy --target wasm32-unknown-unknown -- --D warnings + run: | + cargo update -p zcash_client_backend + cargo clippy --target wasm32-unknown-unknown -- --D warnings diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index d5cc4e24f8..f2d1f0e13e 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -53,7 +53,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release - name: Compress mm2 build output @@ -118,7 +118,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release --target x86_64-apple-darwin - name: Compress mm2 build output @@ -174,7 +174,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo build --release --target aarch64-apple-darwin - name: Compress mm2 build output @@ -286,7 +286,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo rustc --target x86_64-apple-darwin --lib --release --package mm2_bin_lib --crate-type=staticlib - name: Compress mm2 build output @@ -356,7 +356,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend wasm-pack build --release mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release - name: Compress build output @@ -406,7 +406,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo rustc --target aarch64-apple-ios --lib --release --package mm2_bin_lib --crate-type=staticlib - name: Compress mm2 build output @@ -476,7 +476,8 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend + export PATH=$PATH:/android-ndk/bin CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --release --crate-type=staticlib --package mm2_bin_lib @@ -547,7 +548,7 @@ jobs: run: | rm -f ./MM_VERSION echo $COMMIT_HASH > ./MM_VERSION - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend export PATH=$PATH:/android-ndk/bin CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84776339d5..5e066e527e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: - name: Test run: | - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo test --bins --lib --no-fail-fast mac-x86-64-unit: @@ -67,7 +67,7 @@ jobs: - name: Test run: | - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo test --bins --lib --no-fail-fast win-x86-64-unit: @@ -126,7 +126,7 @@ jobs: - name: Test run: | wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/0adeeabdd484ef40539d1275c6a765f5c530ea79/zcutil/fetch-params-alt.sh | bash - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo test --test 'mm2_tests_main' --no-fail-fast mac-x86-64-kdf-integration: @@ -159,7 +159,7 @@ jobs: - name: Test run: | wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/0adeeabdd484ef40539d1275c6a765f5c530ea79/zcutil/fetch-params-alt.sh | bash - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo test --test 'mm2_tests_main' --no-fail-fast win-x86-64-kdf-integration: @@ -225,7 +225,7 @@ jobs: - name: Test run: | wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/v0.8.1//zcutil/fetch-params-alt.sh | bash - rm -rf ~/.cargo/git/checkouts/librustzcash* + cargo update -p zcash_client_backend cargo test --test 'docker_tests_main' --features run-docker-tests --no-fail-fast wasm: