Skip to content

Commit 6890c35

Browse files
authored
Merge pull request #194 from PureSwift/feature/wasm-ci
Update GitHub CI for WASM and Windows
2 parents 7f9d7d4 + 40d84ae commit 6890c35

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/swift-wasm.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 }}

0 commit comments

Comments
 (0)