Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Jan 24, 2025
1 parent 3c4b8f4 commit 5933ce4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ jobs:
echo "RUST_VERSION_HASH=$(rustc --version | sha256sum | awk '{print $1}')" >> $GITHUB_ENV
echo "NODE_VERSION_HASH=$(node --version | sha256sum | awk '{print $1}')" >> $GITHUB_ENV
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/
~/target/release/build/
~/target/wasm32-unknown-unknown/build/
key: clarinet-sdk-cargo-${{ runner.os }}-${{ env.RUST_VERSION_HASH }}-${{ hashFiles('./Cargo.lock') }}

# - name: Cache npm
# uses: actions/cache@v4
# with:
Expand All @@ -61,6 +52,12 @@ jobs:
- name: Run wasm-bindgen-test
run: wasm-pack test --node components/clarinet-sdk-wasm

- name: Cache cargo
uses: actions/cache@v4
with:
path: ~/target/wasm32-unknown-unknown/
key: clarinet-sdk-cargo-${{ runner.os }}-${{ env.RUST_VERSION_HASH }}-${{ hashFiles('./Cargo.lock') }}

- name: Build Wasm packages
run: npm run build:sdk-wasm

Expand Down Expand Up @@ -91,8 +88,6 @@ jobs:
with:
name: wasm-artifacts
path: components/clarinet-sdk-wasm
- name: Display structure of downloaded files
run: ls -R components/clarinet-sdk-wasm

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion components/clarinet-sdk/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"clean": "rimraf dist",
"compile": "tsc -b ./tsconfig.json",
"build": "npm run clean; npm run compile",
"build": "npm run clean && npm run compile",
"prepare": "npm run build"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/clarinet-sdk/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"scripts": {
"clean": "rimraf dist",
"compile": "tsc -b ./tsconfig.json ./tsconfig.cjs.json",
"build": "npm run clean; npm run compile; node ./scripts/prepare-esm-package.js",
"build": "npm run clean && npm run compile; node ./scripts/prepare-esm-package.js",
"prepare": "npm run build",
"pretest": "tsc -b ./tsconfig.json",
"test": "vitest run"
Expand Down

0 comments on commit 5933ce4

Please sign in to comment.