Skip to content

Commit

Permalink
fix workflow (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull authored Jan 17, 2023
1 parent caeea48 commit 0561773
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 50 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,55 @@ jobs:
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_zkp.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto_binary.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto_binary.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_fisco_bcos_sdk.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_fisco_bcos.dylib.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto.dylib.tar.gz
asset_name: libffi_java_crypto.dylib
file: target/release/libffi_java_crypto.dylib
tag: ${{ github.ref }}
overwrite: true
Expand All @@ -88,7 +88,7 @@ jobs:
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_sdk.dylib.tar.gz
asset_name: libffi_java_sdk.dylib
file: target/release/libffi_java_sdk.dylib
tag: ${{ github.ref }}
overwrite: true
Expand All @@ -105,7 +105,7 @@ jobs:
- name: install rust language
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-06-17
toolchain: nightly-2022-07-28
override: true
- name: install CentOS dependencies
run: |
Expand All @@ -118,55 +118,55 @@ jobs:
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_zkp.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto_binary.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto_binary.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_fisco_bcos_sdk.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_fisco_bcos.so.tar.gz
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto.so.tar.gz
asset_name: libffi_java_crypto.so
file: target/release/libffi_java_crypto.so
tag: ${{ github.ref }}
overwrite: true
Expand All @@ -178,7 +178,7 @@ jobs:
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_sdk.so.tar.gz
asset_name: libffi_java_sdk.so
file: target/release/libffi_java_sdk.so
tag: ${{ github.ref }}
overwrite: true
Expand All @@ -203,54 +203,54 @@ jobs:
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.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_zkp.dll.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_crypto_binary.dll.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_crypto_binary.dll.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_fisco_bcos_sdk.dll.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_fisco_bcos.dll.zip
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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_crypto.dll.zip
asset_name: ffi_java_crypto.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto.dll
tag: ${{ github.ref }}
overwrite: true
Expand All @@ -262,7 +262,7 @@ jobs:
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_sdk.dll.tar.gz
asset_name: ffi_java_sdk.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll
tag: ${{ github.ref }}
overwrite: true
50 changes: 25 additions & 25 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,39 +40,39 @@ jobs:
run: cargo bench
- uses: actions/upload-artifact@v2
with:
name: libffi_c_crypto.dylib.tar.gz
name: libffi_c_crypto.dylib
path: target/release/libffi_c_crypto.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_c_zkp.dylib.tar.gz
name: libffi_c_zkp.dylib
path: target/release/libffi_c_zkp.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_java_crypto_binary.dylib.tar.gz
name: libffi_java_crypto_binary.dylib
path: target/release/libffi_java_crypto_binary.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_c_crypto_binary.dylib.tar.gz
name: libffi_c_crypto_binary.dylib
path: target/release/libffi_c_crypto_binary.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_fisco_bcos_sdk.dylib.tar.gz
name: libffi_fisco_bcos_sdk.dylib
path: target/release/libffi_fisco_bcos_sdk.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_c_fisco_bcos.dylib.tar.gz
name: libffi_c_fisco_bcos.dylib
path: target/release/libffi_c_fisco_bcos.dylib
- uses: actions/upload-artifact@v2
with:
name: libffi_java_crypto.dylib.tar.gz
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
with:
name: libffi_java_sdk.dylib.tar.gz
name: libffi_java_sdk.dylib
path: target/release/libffi_java_sdk.dylib

build_with_centos:
Expand All @@ -87,7 +87,7 @@ jobs:
- name: install rust language
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-06-17
toolchain: nightly-2022-07-28
override: true
- name: install CentOS dependencies
run: |
Expand All @@ -100,39 +100,39 @@ jobs:
cargo bench
- uses: actions/upload-artifact@v2
with:
name: libffi_c_crypto.so.tar.gz
name: libffi_c_crypto.so
path: target/release/libffi_c_crypto.so
- uses: actions/upload-artifact@v2
with:
name: libffi_c_zkp.so.tar.gz
name: libffi_c_zkp.so
path: target/release/libffi_c_zkp.so
- uses: actions/upload-artifact@v2
with:
name: libffi_java_crypto_binary.so.tar.gz
name: libffi_java_crypto_binary.so
path: target/release/libffi_java_crypto_binary.so
- uses: actions/upload-artifact@v2
with:
name: libffi_c_crypto_binary.so.tar.gz
name: libffi_c_crypto_binary.so
path: target/release/libffi_c_crypto_binary.so
- uses: actions/upload-artifact@v2
with:
name: libffi_fisco_bcos_sdk.so.tar.gz
name: libffi_fisco_bcos_sdk.so
path: target/release/libffi_fisco_bcos_sdk.so
- uses: actions/upload-artifact@v2
with:
name: libffi_c_fisco_bcos.so.tar.gz
name: libffi_c_fisco_bcos.so
path: target/release/libffi_c_fisco_bcos.so
- uses: actions/upload-artifact@v2
with:
name: libffi_java_crypto.so.tar.gz
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
with:
name: libffi_java_sdk.so.tar.gz
name: libffi_java_sdk.so
path: target/release/libffi_java_sdk.so

build_with_windows:
Expand All @@ -154,37 +154,37 @@ jobs:
cargo bench
- uses: actions/upload-artifact@v2
with:
name: ffi_c_crypto.dll.zip
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
with:
name: ffi_c_zkp.dll.zip
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
with:
name: ffi_java_crypto_binary.dll.zip
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
with:
name: ffi_c_crypto_binary.dll.zip
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
with:
name: ffi_fisco_bcos_sdk.dll.zip
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
with:
name: ffi_c_fisco_bcos.dll.zip
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
with:
name: ffi_java_crypto.dll.zip
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
with:
name: ffi_java_sdk.dll.tar.gz
name: ffi_java_sdk.dll
path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll

0 comments on commit 0561773

Please sign in to comment.