Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykingxyz committed Nov 1, 2023
1 parent 7ecc388 commit 9af3330
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/actions/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ runs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
# cache: 'pnpm'
- name: Install dependencies
shell: bash
run: |
export PATH=$PNPM_HOME:$PATH
pnpm --version && pnpm install
- name: Use rust cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - name: Use rust cache
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
7 changes: 6 additions & 1 deletion lib/rspack.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ export async function buildRspack(remote, branch) {
await switchToBranch(remote, branch);

console.log("== install deps ==");
await runCommand("whereis", ["pnpm"]);
await runCommand("pnpm", ["--version"]);
await runCommand("pnpm", ["install", "--no-frozen-lockfile"]);
await runCommand("cargo", ["clean"]);

console.log("== build rspack ==");
await runCommand("npm", ["run", "build:cli:release"]);
await runCommand("npm", ["run", "build:binding:release"]);
await runCommand("git", ["status"]);
await runCommand("cat", ["./crates/node_binding/binding.d.ts"]);
await runCommand("npm", ["run", "build:js"]);
}

0 comments on commit 9af3330

Please sign in to comment.