Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Fix workflow path

Fix workflow path #43

Workflow file for this run

name: build wasm package
on:
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
detect-changes:
uses: ./.github/workflows/check_diff.yaml

Check failure on line 14 in .github/workflows/build_wasm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_wasm.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build_wasm.yml" -> "./.github/workflows/check_diff.yaml" : failed to fetch workflow: workflow was not found.
with:
pattern: ^crates/hyperwasm/
build:
needs: detect-changes
# Run if changes are detected OR if the workflow was called from another workflow
if: needs.detect-changes.outputs.changed == 'true' || github.event_name == 'workflow_call'
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{github.token}}
- name: setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
- name: setup foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: check out hyperdrive
uses: actions/checkout@master
with:
repository: delvtech/hyperdrive
ref: 'v0.2.0'
path: './hyperdrive'
ssh-key: ${{ secrets.HYPERDRIVE_ACCESS_KEY }}
- name: build wasm package
working-directory: crates/hyperwasm
run: |
sh build.sh
echo "Built and now in... $(pwd)"
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
path: ./crates/hyperwasm/pkg/*.tgz
name: hyperwasm-v0.0.14