v0.2.6 #8
Workflow file for this run
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: CD | |
on: | |
release: | |
types: [published] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
target: wasm32-unknown-unknown | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: generate-lockfile | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
~/.cargo/bin | |
target | |
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run openssl tests | |
run: cargo test | |
- name: Run pure rust tests | |
run: cargo test --no-default-features --features pure | |
- name: Install wasm dep | |
run: cargo install wasm-bindgen-cli || true | |
- name: Run wasm tests | |
run: cargo test --no-default-features --features pure --target=wasm32-unknown-unknown | |
- name: Publish cargo package | |
run: cargo login $CARGO_LOGIN_TOKEN && cargo publish | |
env: | |
CARGO_LOGIN_TOKEN: ${{ secrets.CARGO_LOGIN_TOKEN }} |