74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
name: Reusable Build rerun_js
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
CONCURRENCY:
|
|
required: true
|
|
type: string
|
|
|
|
concurrency:
|
|
group: ${{ inputs.CONCURRENCY }}-build-js
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
RUSTFLAGS: --deny warnings
|
|
RUSTDOCFLAGS: --deny warnings
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash --noprofile --norc -euo pipefail {0}
|
|
|
|
permissions:
|
|
contents: "read"
|
|
id-token: "write"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build rerun_js
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest-16-cores
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.x"
|
|
|
|
- name: Install Yarn
|
|
run: npm install -g yarn
|
|
|
|
- name: Set up Rust
|
|
uses: ./.github/actions/setup-rust
|
|
with:
|
|
cache_key: "build-web"
|
|
# Cache will be produced by `reusable_checks/rs-check-wasm`
|
|
save_cache: false
|
|
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
|
|
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
|
|
|
|
- uses: prefix-dev/setup-pixi@v0.10.0
|
|
with:
|
|
pixi-version: v0.71.3
|
|
|
|
- name: Install yarn dependencies
|
|
run: pixi run yarn --cwd rerun_js install
|
|
|
|
- name: Build rerun_js package
|
|
run: pixi run yarn --cwd rerun_js workspaces run build
|
|
|
|
- name: Package rerun_js
|
|
run: |
|
|
pixi run yarn --cwd rerun_js workspaces run pack
|
|
mkdir rerun_js_package
|
|
cp rerun_js/*/*.tar.gz rerun_js_package/
|
|
|
|
- name: Upload rerun_js
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: rerun_js
|
|
path: rerun_js_package
|
|
compression-level: 0 # already compressed
|