File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Swift WASM
2+ on : [push]
3+ jobs :
4+ build-wasm :
5+ name : Build for WASM
6+ runs-on : ubuntu-latest
7+ strategy :
8+ matrix :
9+ swift : ["6.0.3"]
10+ config : ["debug", "release"]
11+ container : swift:${{ matrix.swift }}
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+ - name : Swift Version
16+ run : swift --version
17+ - uses : swiftwasm/setup-swiftwasm@v2
18+ - name : Build
19+ run : SWIFTPM_BLUETOOTH_METADATA=0 SWIFTPM_ENABLE_PLUGINS=0 SWIFTPM_ENABLE_MACROS=0 swift build --target Bluetooth -c ${{ matrix.config }} --swift-sdk wasm32-unknown-wasi
Original file line number Diff line number Diff line change 1+ name : Swift Windows
2+ on : [push]
3+ jobs :
4+ windows-build :
5+ name : Windows
6+ runs-on : windows-latest
7+ strategy :
8+ matrix :
9+ swift : ["6.1.2"]
10+ config : ["debug", "release"]
11+ steps :
12+ - uses : compnerd/gha-setup-swift@main
13+ with :
14+ branch : swift-${{ matrix.swift }}-release
15+ tag : ${{ matrix.swift }}-RELEASE
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ - name : Swift Version
19+ run : swift --version
20+ - name : Build
21+ run : swift build -c ${{ matrix.config }}
You can’t perform that action at this time.
0 commit comments