From 9b2edc3e5f91d751c371e2df9549f4be296dcf0b Mon Sep 17 00:00:00 2001 From: HaoXuan40404 <444649358@qq.com> Date: Tue, 19 Nov 2024 17:49:25 +0800 Subject: [PATCH] fix action upload --- .github/workflows/release.yml | 50 ++++++++++++++++++---------------- .github/workflows/workflow.yml | 48 ++++++++++++++++---------------- 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85eac48..0e2b270 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: build run: cargo build --all --all-targets --verbose --release - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_crypto.dylib @@ -33,7 +33,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_zkp.dylib @@ -41,7 +41,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_crypto_binary.dylib @@ -49,7 +49,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_crypto_binary.dylib @@ -57,7 +57,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_fisco_bcos_sdk.dylib @@ -65,7 +65,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_fisco_bcos.dylib @@ -73,7 +73,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_crypto.dylib @@ -85,7 +85,7 @@ jobs: - name: rename to ffi_java_sdk lib run: mv target/release/libffi_java_crypto.dylib target/release/libffi_java_sdk.dylib - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_sdk.dylib @@ -95,6 +95,8 @@ jobs: build_with_centos: name: build_with_centos + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true runs-on: ubuntu-latest container: image: docker.io/centos:7 @@ -115,7 +117,7 @@ jobs: run: | cargo build --all --all-targets --verbose --release - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_crypto.so @@ -123,7 +125,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_zkp.so @@ -131,7 +133,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_crypto_binary.so @@ -139,7 +141,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_crypto_binary.so @@ -147,7 +149,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_fisco_bcos_sdk.so @@ -155,7 +157,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_c_fisco_bcos.so @@ -163,7 +165,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_crypto.so @@ -175,7 +177,7 @@ jobs: - name: rename to ffi_java_sdk lib run: mv target/release/libffi_java_crypto.so target/release/libffi_java_sdk.so - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: libffi_java_sdk.so @@ -199,7 +201,7 @@ jobs: run: | cargo build --all --all-targets --verbose --release - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto.dll @@ -207,7 +209,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_c_zkp.dll @@ -215,7 +217,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_java_crypto_binary.dll @@ -223,7 +225,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_c_crypto_binary.dll @@ -231,7 +233,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_fisco_bcos_sdk.dll @@ -239,7 +241,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_c_fisco_bcos.dll @@ -247,7 +249,7 @@ jobs: tag: ${{ github.ref }} overwrite: true - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_java_crypto.dll @@ -259,7 +261,7 @@ jobs: - name: rename to vrf lib run: mv D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto.dll D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll - name: Upload wedpr-lab-crypto binaries to release - uses: svenstaro/upload-release-action@v1-release + uses: svenstaro/upload-release-action@v4-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} asset_name: ffi_java_sdk.dll diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 80c0eb8..4a66d24 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -38,31 +38,31 @@ jobs: run: cargo test - name: bench run: cargo bench - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_crypto.dylib path: target/release/libffi_c_crypto.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_zkp.dylib path: target/release/libffi_c_zkp.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_crypto_binary.dylib path: target/release/libffi_java_crypto_binary.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_crypto_binary.dylib path: target/release/libffi_c_crypto_binary.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_fisco_bcos_sdk.dylib path: target/release/libffi_fisco_bcos_sdk.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_fisco_bcos.dylib path: target/release/libffi_c_fisco_bcos.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_crypto.dylib path: target/release/libffi_java_crypto.dylib @@ -70,7 +70,7 @@ jobs: run: cargo clean && cd ffi/ffi_java/ffi_java_crypto && cargo build --release --no-default-features --features "wedpr_f_hex wedpr_f_signature_secp256k1 wedpr_f_hash_keccak256 wedpr_f_signature_sm2 wedpr_f_hash_sm3 wedpr_f_vrf_curve25519" - name: rename to ffi_java_sdk lib run: mv target/release/libffi_java_crypto.dylib target/release/libffi_java_sdk.dylib - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_sdk.dylib path: target/release/libffi_java_sdk.dylib @@ -98,31 +98,31 @@ jobs: cargo build --all --all-targets --verbose --release cargo test cargo bench - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_crypto.so path: target/release/libffi_c_crypto.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_zkp.so path: target/release/libffi_c_zkp.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_crypto_binary.so path: target/release/libffi_java_crypto_binary.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_crypto_binary.so path: target/release/libffi_c_crypto_binary.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_fisco_bcos_sdk.so path: target/release/libffi_fisco_bcos_sdk.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_c_fisco_bcos.so path: target/release/libffi_c_fisco_bcos.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_crypto.so path: target/release/libffi_java_crypto.so @@ -130,7 +130,7 @@ jobs: run: cargo clean && cd ffi/ffi_java/ffi_java_crypto && cargo build --release --no-default-features --features "wedpr_f_hex wedpr_f_signature_secp256k1 wedpr_f_hash_keccak256 wedpr_f_signature_sm2 wedpr_f_hash_sm3 wedpr_f_vrf_curve25519" - name: rename to ffi_java_sdk lib run: mv target/release/libffi_java_crypto.so target/release/libffi_java_sdk.so - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: libffi_java_sdk.so path: target/release/libffi_java_sdk.so @@ -152,31 +152,31 @@ jobs: cargo build --all --all-targets --verbose --release cargo test cargo bench - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_c_crypto.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_c_zkp.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_zkp.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_java_crypto_binary.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto_binary.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_c_crypto_binary.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto_binary.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_fisco_bcos_sdk.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_fisco_bcos_sdk.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_c_fisco_bcos.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_fisco_bcos.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_java_crypto.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto.dll @@ -184,7 +184,7 @@ jobs: run: cargo clean && cd ffi/ffi_java/ffi_java_crypto && cargo build --release --no-default-features --features "wedpr_f_hex wedpr_f_signature_secp256k1 wedpr_f_hash_keccak256 wedpr_f_signature_sm2 wedpr_f_hash_sm3 wedpr_f_vrf_curve25519" - name: rename to vrf lib run: mv D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto.dll D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ffi_java_sdk.dll path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll