upgrade wedpr_l_crypto_zkp_utils #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WeDPR-Lab-Core GitHub Actions | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
release: | |
types: [published, created, edited] | |
env: | |
CCACHE_DIR: ${{ github.workspace }}/ccache | |
jobs: | |
build_with_macos: | |
name: build_with_macos | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: Nightly default | |
run: rustup default nightly | |
- name: install macOS dependencies | |
if: runner.os == 'macOS' | |
run: brew install ccache | |
- name: build | |
run: cargo build --all --all-targets --verbose --release | |
- name: run test and bench | |
run: cargo test && cargo bench | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_acv.dylib | |
path: target/release/libffi_java_acv.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_vcl.dylib | |
path: target/release/libffi_java_vcl.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_scd.dylib | |
path: target/release/libffi_java_scd.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_ktb.dylib | |
path: target/release/libffi_java_ktb.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_scd.dylib | |
path: target/release/libffi_c_scd.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_vcl.dylib | |
path: target/release/libffi_c_vcl.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_hdk.dylib | |
path: target/release/libffi_c_hdk.dylib | |
- name: build sm-acv | |
run: cd ffi/ffi_java/ffi_java_acv && cargo clean && cargo build --release --no-default-features --features sm | |
- name: rename libffi_java_acv | |
run: mv target/release/libffi_java_acv.dylib target/release/libffi_java_sm_acv.dylib | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_sm_acv.dylib | |
path: target/release/libffi_java_sm_acv.dylib | |
build_with_centos: | |
name: build_with_centos | |
runs-on: ubuntu-latest | |
container: | |
image: docker.io/centos:7 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: install rust language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-01-10 | |
override: true | |
- name: install CentOS dependencies | |
run: | | |
yum install -y epel-release centos-release-scl | |
yum install -y openssl openssl-devel git make gcc gcc-c++ glibc-static glibc-devel cmake3 ccache devtoolset-7 libzstd-devel zlib-devel flex bison python-devel python3-devel && source /opt/rh/devtoolset-7/enable | |
- name: configure and compile | |
run: | | |
cargo build --all --all-targets --verbose --release | |
cargo test | |
cargo bench | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_acv.so | |
path: target/release/libffi_java_acv.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_vcl.so | |
path: target/release/libffi_java_vcl.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_scd.so | |
path: target/release/libffi_java_scd.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_ktb.so | |
path: target/release/libffi_java_ktb.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_scd.so | |
path: target/release/libffi_c_scd.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_vcl.so | |
path: target/release/libffi_c_vcl.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_c_hdk.so | |
path: target/release/libffi_c_hdk.so | |
- name: build sm-acv | |
run: cd ffi/ffi_java/ffi_java_acv && cargo clean && cargo build --release --no-default-features --features sm | |
- name: rename libffi_java_acv | |
run: mv target/release/libffi_java_acv.so target/release/libffi_java_sm_acv.so | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libffi_java_sm_acv.so | |
path: target/release/libffi_java_sm_acv.so | |
build_with_windows: | |
name: build_with_windows | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: install rust language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-01-10 | |
override: true | |
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | |
- run: vcpkg install openssl:x64-windows-static-md | |
- name: build and test | |
run: | | |
cargo build --all --all-targets --verbose --release | |
cargo test | |
cargo bench | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_java_acv.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_acv.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_java_vcl.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_vcl.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_java_scd.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_scd.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_java_ktb.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_ktb.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_c_scd.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_c_scd.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_c_vcl.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_c_vcl.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_c_hdk.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_c_hdk.dll | |
- name: build sm-acv | |
run: cd ffi/ffi_java/ffi_java_acv && cargo clean && cargo build --release --no-default-features --features sm | |
- name: rename libffi_java_acv | |
run: mv D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_acv.dll D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_sm_acv.dll | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ffi_java_sm_acv.dll | |
path: D:\a\WeDPR-Lab-Core\WeDPR-Lab-Core\target\release\ffi_java_sm_acv.dll |