Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/rust-napi-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
required: false
type: string
default: "cargo fmt --all -- --check"
install-command:
description: "Command used to install dependencies. `--no-verify` works around bun's integrity check on napi-rs platform sub-packages."
required: false
type: string
default: "bun install --frozen-lockfile --no-verify"

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -80,7 +85,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- run: bun install --frozen-lockfile
- run: ${{ inputs.install-command }}
- run: bun run lint

runtime-compat:
Expand Down Expand Up @@ -111,7 +116,7 @@ jobs:
with:
targets: wasm32-wasip1-threads
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- run: bun install --frozen-lockfile
- run: ${{ inputs.install-command }}
- run: bun run build
- run: bun run build:js
- name: Bun runtime smoke
Expand Down Expand Up @@ -162,7 +167,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- run: bun install --frozen-lockfile
- run: ${{ inputs.install-command }}
- uses: stella/.github/actions/provenance-check@0107276320ff349dda9bcd9e111680cca1951fce
with:
provenance-version: ${{ inputs.provenance-version }}
Expand Down Expand Up @@ -209,7 +214,7 @@ jobs:
- if: inputs.build-changed == 'true'
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- if: inputs.build-changed == 'true'
run: bun install --frozen-lockfile
run: ${{ inputs.install-command }}
- name: Build (native)
if: >-
inputs.build-changed == 'true' &&
Expand Down Expand Up @@ -260,7 +265,7 @@ jobs:
- if: inputs.build-changed == 'true'
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- if: inputs.build-changed == 'true'
run: bun install --frozen-lockfile
run: ${{ inputs.install-command }}
- if: inputs.build-changed == 'true'
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
Expand Down
Loading