Skip to content

Publish v0.1.0

Publish v0.1.0 #184

Workflow file for this run

name: Rust
on:
pull_request:
branches: [ "*" ]
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.STARK_CURVE_KEY }}
${{ secrets.UDIGEST_KEY }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Build no-std
run: cargo build -p generic-ec --no-default-features
- name: Build with `alloc` only
run: cargo build -p generic-ec --no-default-features --features alloc
- name: Build all-features
run: cargo build -p generic-ec --all-features
- name: Run tests
run: cargo test
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all --lib --exclude generic-ec-tests -- --no-deps -D clippy::all -D clippy::unwrap_used -D clippy::expect_used
- name: Run clippy no-std
run: cargo clippy -p generic-ec --no-default-features -- -D clippy::all
- name: Run clippy tests
run: cargo clippy --tests -- -D clippy::all
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.STARK_CURVE_KEY }}
${{ secrets.UDIGEST_KEY }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Install wasm32-unknown-unknown toolchain
run: rustup target add wasm32-unknown-unknown
- name: Build on wasm32-unknown-unknown
run:
cargo check -p generic-ec --target wasm32-unknown-unknown --features wasm,all-curves
- name: Install wasm-pack
uses: baptiste0928/cargo-install@v1
with:
crate: wasm-pack
- name: wasm-pack an example project
run: (cd wasm/wasm-example; wasm-pack build)