Skip to content

Commit

Permalink
upgrade rust toolchain to nightly-2024-01-10
Browse files Browse the repository at this point in the history
  • Loading branch information
bxq2011hust committed Feb 26, 2024
1 parent 3ca836f commit 46dc0e0
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 422 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_sdk.dylib
file: target/release/libffi_java_sdk.dylib
file: target/release/libffi_java_sdk.dylib
tag: ${{ github.ref }}
overwrite: true
overwrite: true

build_with_centos:
name: build_with_centos
Expand All @@ -105,7 +105,7 @@ jobs:
- name: install rust language
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-28
toolchain: nightly-2024-01-10
override: true
- name: install CentOS dependencies
run: |
Expand All @@ -129,15 +129,15 @@ jobs:
asset_name: libffi_c_zkp.so
file: target/release/libffi_c_zkp.so
tag: ${{ github.ref }}
overwrite: true
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
file: target/release/libffi_java_crypto_binary.so
tag: ${{ github.ref }}
overwrite: true
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
Expand Down Expand Up @@ -265,4 +265,4 @@ jobs:
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
overwrite: true
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: libffi_java_sdk.dylib
path: target/release/libffi_java_sdk.dylib
path: target/release/libffi_java_sdk.dylib

build_with_centos:
name: build_with_centos
Expand All @@ -87,12 +87,12 @@ jobs:
- name: install rust language
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-28
toolchain: nightly-2024-01-10
override: true
- name: install CentOS dependencies
run: |
yum install -y epel-release centos-release-scl
yum install -y java-11-openjdk-devel git make gcc gcc-c++ glibc-static glibc-devel openssl openssl-devel cmake3 ccache devtoolset-7 libzstd-devel zlib-devel flex bison python-devel python3-devel && source /opt/rh/devtoolset-7/enable
yum install -y java-11-openjdk-devel git make gcc gcc-c++ glibc-static glibc-devel openssl openssl-devel cmake3 ccache devtoolset-7 libzstd-devel zlib-devel flex bison python-devel python3-devel perl-IPC-Cmd && source /opt/rh/devtoolset-7/enable
- name: configure and compile
run: |
cargo build --all --all-targets --verbose --release
Expand Down Expand Up @@ -187,4 +187,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: ffi_java_sdk.dll
path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll
path: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll
Loading

0 comments on commit 46dc0e0

Please sign in to comment.