Skip to content

add tests for gas prices (#561) #5

add tests for gas prices (#561)

add tests for gas prices (#561) #5

Workflow file for this run

name: Compile WASM
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
jobs:
wasm:
runs-on: buildjet-16vcpu-ubuntu-2204 # buildjet for rust, github standard for everything else
steps:
- uses: actions/checkout@v4
- id: compiled
uses: actions/cache@v3 # turbo cache, shared between buildjet and github
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-turbo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4 # node cache, distinct between buildjet and github
with:
node-version: '21'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
- uses: dtolnay/rust-toolchain@stable # rust only on buildjet
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/[email protected] # rust cache
with:
shared-key: wasm
cache-provider: 'buildjet'
workspaces: 'packages/wasm/crate'
- uses: jetli/[email protected] # preinstall wasm-pack
with:
version: 'latest'
- run: pnpm turbo compile --cache-dir=.turbo # compile wasm
- run: cargo tree --invert penumbra-wasm --edges features # debug tree
if: failure()
working-directory: packages/wasm/crate