-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjustments for experimental embedded support (#53)
* no print in embedded and renamed env setting * add embedded wasm CI * fix github CI file * ...yaml... * fixed missing function
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build Embedded Wasm | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**.swift" | ||
- "**.yml" | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
image: ["swiftlang/swift:nightly-main"] | ||
|
||
container: | ||
image: ${{ matrix.image }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
swift build -c release \ | ||
--triple wasm32-unknown-none-wasm \ | ||
-Xswiftc -enable-experimental-feature -Xswiftc Embedded \ | ||
-Xswiftc -enable-experimental-feature -Xswiftc Extern \ | ||
-Xswiftc -wmo -Xswiftc -disable-cmo \ | ||
-Xswiftc -cxx-interoperability-mode=default \ | ||
-Xcc -fdeclspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters