Skip to content

Migrate DOM interop to BridgeJS #230

Migrate DOM interop to BridgeJS

Migrate DOM interop to BridgeJS #230

Workflow file for this run

name: Build Examples
on:
push:
branches: [main]
paths:
- "**.swift"
- "**.yml"
pull_request:
branches: [main]
paths-ignore:
- "**/README.md"
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
swift:
- image: swift:6.2.3
wask-sdk-url: https://download.swift.org/swift-6.2.3-release/wasm-sdk/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE_wasm.artifactbundle.tar.gz
wasm-sdk-checksum: 394040ecd5260e68bb02f6c20aeede733b9b90702c2204e178f3e42413edad2a
examples:
- Examples/Swiftle
- Examples/Basic
container: ${{ matrix.swift.image }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: ${{ matrix.examples }}/pnpm-lock.yaml
- name: Install Swift WASM SDK
run: swift sdk install ${{ matrix.swift.wask-sdk-url }} --checksum ${{ matrix.swift.wasm-sdk-checksum }}
- name: Install dependencies
working-directory: ${{ matrix.examples }}
run: pnpm preinstall && pnpm install
- name: Build
working-directory: ${{ matrix.examples }}
run: pnpm build