Skip to content

Commit

Permalink
fix action upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoXuan40404 committed Nov 19, 2024
1 parent 70136d0 commit 9b2edc3
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 48 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,55 +25,55 @@ 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
file: target/release/libffi_c_crypto.dylib
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
file: target/release/libffi_c_zkp.dylib
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
file: target/release/libffi_java_crypto_binary.dylib
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
file: target/release/libffi_c_crypto_binary.dylib
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
file: target/release/libffi_fisco_bcos_sdk.dylib
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
file: target/release/libffi_c_fisco_bcos.dylib
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -115,55 +117,55 @@ 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
file: target/release/libffi_c_crypto.so
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
file: target/release/libffi_c_zkp.so
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
file: target/release/libffi_java_crypto_binary.so
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
file: target/release/libffi_c_crypto_binary.so
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
file: target/release/libffi_fisco_bcos_sdk.so
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
file: target/release/libffi_c_fisco_bcos.so
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
Expand All @@ -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
Expand All @@ -199,55 +201,55 @@ 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
asset_name: ffi_c_crypto.dll
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
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_zkp.dll
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
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto_binary.dll
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
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto_binary.dll
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
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_fisco_bcos_sdk.dll
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
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_fisco_bcos.dll
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
Expand All @@ -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
Expand Down
48 changes: 24 additions & 24 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@ 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
- name: build ffi_java_sdk
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
Expand Down Expand Up @@ -98,39 +98,39 @@ 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
- name: build ffi_java_sdk
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
Expand All @@ -152,39 +152,39 @@ 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
- name: build ffi_java_sdk
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

0 comments on commit 9b2edc3

Please sign in to comment.