Skip to content

Commit c326ebf

Browse files
Add Embedded build to CI
1 parent 17af647 commit c326ebf

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/test.yml

+16
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,19 @@ jobs:
8686
- run: swift build
8787
env:
8888
DEVELOPER_DIR: /Applications/${{ matrix.xcode }}.app/Contents/Developer/
89+
90+
embedded-build:
91+
name: Build for embedded target
92+
runs-on: ubuntu-22.04
93+
strategy:
94+
matrix:
95+
entry:
96+
- os: ubuntu-22.04
97+
toolchain: DEVELOPMENT-SNAPSHOT-2024-09-25-a
98+
steps:
99+
- uses: actions/checkout@v4
100+
- uses: ./.github/actions/install-swift
101+
with:
102+
swift-dir: development/ubuntu2204
103+
swift-version: swift-${{ matrix.entry.toolchain }}
104+
- run: ./Examples/Embedded/build.sh

Examples/Embedded/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM=true swift build -c release --product EmbeddedApp \
1+
#!/bin/bash
2+
package_dir="$(cd "$(dirname "$0")" && pwd)"
3+
JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM=true swift build --package-path "$package_dir" -c release --product EmbeddedApp \
24
--triple wasm32-unknown-none-wasm \
35
-Xswiftc -enable-experimental-feature -Xswiftc Embedded \
46
-Xswiftc -enable-experimental-feature -Xswiftc Extern \

0 commit comments

Comments
 (0)