mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-02-23 19:58:11 +00:00
* chore: Update dependencies to latest versions Upgrade various dependencies across multiple crates to their latest compatible versions * chore: Update Cargo.toml dependency versions to latest compatible releases Upgrade serde and serde_json dependency versions using more flexible version specifiers * chore: Update Cargo dependencies to latest compatible versions Upgrade Ark and Wasmer dependencies to their latest minor versions, including: - ark-circom from 0.1.0 to 0.5.0 - ark-zkey from 0.1.0 to 0.1.2 - wasmer from 2.3.0 to 2.3.x - num-traits to 0.2.19 Also update Makefile to improve cross-platform build process for wabt * chore: Update Ark dependencies to latest patch versions * chore: Revert ark-zkey dependency and update Wasmer to 4.4.0 Remove ark-zkey optional dependency and update Wasmer to version 4.4.0 across multiple crates. Modify circuit module to include necessary structs and functions previously provided by ark-zkey. * chore: Update zkey path to use uncompressed arkzkey file * Remove rln-wasm package and related configurations Clean up project structure by removing the rln-wasm package, associated GitHub workflows, and WASM-specific configurations. This includes: - Removing rln-wasm directory and its contents - Updating Cargo.toml workspace configuration - Removing WASM-specific build and test configurations from CI workflows - Removing WASM-related dependencies and features from RLN crate * Fix CI workflow for default feature testing * rollback to default * Fix CI workflow to support default feature testing * Fix CI workflow syntax for feature testing condition * Update README.md with clearer testing instructions for RLN module
125 lines
3.7 KiB
YAML
125 lines
3.7 KiB
YAML
name: Nightly build
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
strategy:
|
|
matrix:
|
|
feature: [ "default", "arkzkey", "stateless" ]
|
|
target:
|
|
- x86_64-unknown-linux-gnu
|
|
- aarch64-unknown-linux-gnu
|
|
- i686-unknown-linux-gnu
|
|
include:
|
|
- feature: stateless
|
|
cargo_args: --exclude rln-cli
|
|
name: Linux build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
target: ${{ matrix.target }}
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Install dependencies
|
|
run: make installdeps
|
|
- name: cross build
|
|
run: |
|
|
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }}
|
|
mkdir release
|
|
cp target/${{ matrix.target }}/release/librln* release/
|
|
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
|
|
|
- name: Upload archive artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.target }}-${{ matrix.feature }}-archive
|
|
path: ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz
|
|
retention-days: 2
|
|
|
|
macos:
|
|
name: MacOS build
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
feature: [ "default", "arkzkey", "stateless" ]
|
|
target:
|
|
- x86_64-apple-darwin
|
|
- aarch64-apple-darwin
|
|
include:
|
|
- feature: stateless
|
|
cargo_args: --exclude rln-cli
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
target: ${{ matrix.target }}
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Install dependencies
|
|
run: make installdeps
|
|
- name: cross build
|
|
run: |
|
|
cross build --release --target ${{ matrix.target }} --features ${{ matrix.feature }}
|
|
mkdir release
|
|
cp target/${{ matrix.target }}/release/librln* release/
|
|
tar -czvf ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz release/
|
|
|
|
- name: Upload archive artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.target }}-${{ matrix.feature }}-archive
|
|
path: ${{ matrix.target }}-${{ matrix.feature }}-rln.tar.gz
|
|
retention-days: 2
|
|
|
|
prepare-prerelease:
|
|
name: Prepare pre-release
|
|
needs: [ linux, macos ]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: master
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v4
|
|
|
|
- name: Delete tag
|
|
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
|
with:
|
|
delete_release: true
|
|
tag_name: nightly
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create prerelease
|
|
run: |
|
|
start_tag=$(gh release list -L 2 --exclude-drafts | grep -v nightly | cut -d$'\t' -f3 | sed -n '1p')
|
|
gh release create nightly --prerelease --target master \
|
|
--title 'Nightly build ("master" branch)' \
|
|
--generate-notes \
|
|
--draft=false \
|
|
--notes-start-tag $start_tag \
|
|
*-archive/*.tar.gz \
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Delete artifacts
|
|
uses: geekyeggo/delete-artifact@v5
|
|
with:
|
|
failOnError: false
|
|
name: |
|
|
*-archive
|