Skip to content

Commit

Permalink
Add workspace for vc_issuer (#2196)
Browse files Browse the repository at this point in the history
This adds a new workspace for the `vc_issuer` demo directory,
effectively deduplicating the lockfile.
  • Loading branch information
nmattia authored Jan 11, 2024
1 parent 67f1d1a commit b4024fe
Show file tree
Hide file tree
Showing 7 changed files with 652 additions and 1,800 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/canister-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,10 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('demos/vc_issuer/Cargo.lock', 'rust-toolchain.toml') }}
- uses: ./.github/actions/bootstrap
- uses: ./.github/actions/setup-node

- run: npm ci
- name: "Build VC issuer canister"
working-directory: demos/vc_issuer
run: |
npm ci
./build.sh
run: ./build.sh
- run: sha256sum vc_demo_issuer.wasm.gz
working-directory: demos/vc_issuer
- name: 'Upload VC issuer'
Expand Down
4 changes: 3 additions & 1 deletion demos/vc_issuer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ VC_ISSUER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$VC_ISSUER_DIR"

# Build the app
npm run build
pushd ../../
npm run --workspace ./demos/vc_issuer build
popd

cargo build --release --target wasm32-unknown-unknown --manifest-path ./Cargo.toml -j1
ic-wasm "target/wasm32-unknown-unknown/release/vc_issuer.wasm" -o "./vc_demo_issuer.wasm" shrink
Expand Down
Loading

0 comments on commit b4024fe

Please sign in to comment.