Skip to content

feat: build-rspack-binding.yaml #2

feat: build-rspack-binding.yaml

feat: build-rspack-binding.yaml #2

name: Build Rspack Binding
on:
workflow_dispatch:
inputs:
repository:
description: 'Rspack repository to use'
default: 'web-infra-dev/rspack'
ref:
description: 'The branch, tag or SHA to checkout'
jobs:
get-runner-labels:
- steps:

Check failure on line 14 in .github/workflows/build-rspack-binding.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-rspack-binding.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
name: Get Runner Labels
uses: ./.github/workflows/get-runner-labels.yml
main:
needs: [get-runner-labels]
runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }}
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: corepack enable
- run: pnpm --version
- name: Checkout Rspack repo
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Build Rspack
run: |
pnpm i --frozen-lockfile
pnpm run build:binding:release
- uses: actions/upload-artifact@v4
with:
name: bindings-x86_64-unknown-linux-gnu
path: crates/node_binding/*.node