Skip to content

Commit

Permalink
chore: show hash
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed May 28, 2024
1 parent 5c039d3 commit 4b4fe63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/actions/build-rspack/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ outputs:
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- shell: bash
run: |
npm install -g corepack@0.24.1
Expand Down Expand Up @@ -56,4 +53,6 @@ runs:
path: ${{ inputs.path }}/crates/node_binding
- name: Show restored binding
shell: bash
run: ls -lah ${{ inputs.path }}/crates/node_binding/*.node
run: |
ls -lah ${{ inputs.path }}/crates/node_binding/*.node
md5sum ${{ inputs.path }}/crates/node_binding/rspack.linux-x64-gnu.node
2 changes: 2 additions & 0 deletions .github/actions/prepare-rspack-binding/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ runs:
--binding true
--js false
--bench false
- shell: bash
run: md5sum ${{ inputs.path }}/crates/node_binding/rspack.linux-x64-gnu.node
- uses: actions/upload-artifact@v4
with:
name: binding-linux-x64-gnu
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ if (checkout) {
const currentBranch = (await $`git rev-parse --abbrev-ref HEAD`).toString().trim();
await $`git fetch ${fetchUrl} ${ref} --prune`;
await $`git checkout -b ${Date.now()} FETCH_HEAD`;
await $`git log -1`;
if (currentBranch) {
await $`git branch -D ${currentBranch}`;
}
Expand All @@ -94,6 +93,7 @@ if (checkout) {

if (build) {
cd(path);
await $`git log -1`;

await $`pnpm --version`;
await $`pnpm install --prefer-frozen-lockfile --prefer-offline`;
Expand Down

0 comments on commit 4b4fe63

Please sign in to comment.