11
11
- swiftwasm-release/5.3
12
12
13
13
jobs :
14
- ubuntu_1804_build :
14
+ ubuntu1804_build :
15
15
timeout-minutes : 0
16
16
runs-on : ubuntu-18.04
17
17
48
48
- name : Upload Ubuntu 18.04 installable archive
49
49
uses : actions/upload-artifact@v1
50
50
with :
51
- name : ubuntu_18 .04-installable
52
- path : ../swift-wasm-DEVELOPMENT-SNAPSHOT-linux .tar.gz
51
+ name : ubuntu18 .04-installable
52
+ path : ../swift-wasm-DEVELOPMENT-SNAPSHOT-ubuntu18.04 .tar.gz
53
53
# - name: Pack test results
54
54
# run: tar cJf swift-test-results.tar.gz ../build/*/swift-linux-x86_64/swift-test-results
55
55
# - name: Upload test results
58
58
# name: linux-test-results
59
59
# path: ./swift-test-results.tar.gz
60
60
61
- ubuntu_2004_build :
61
+ ubuntu2004_build :
62
62
timeout-minutes : 0
63
63
runs-on : ubuntu-20.04
64
64
@@ -91,11 +91,11 @@ jobs:
91
91
- name : Build Ubuntu 20.04 installable archive
92
92
run : |
93
93
./utils/webassembly/ci.sh
94
- # - name: Upload Linux installable archive
95
- # uses: actions/upload-artifact@v1
96
- # with:
97
- # name: linux -installable
98
- # path: ../swift-wasm-DEVELOPMENT-SNAPSHOT-linux .tar.gz
94
+ - name : Upload Ubuntu 20.04 installable archive
95
+ uses : actions/upload-artifact@v1
96
+ with :
97
+ name : ubuntu20.04 -installable
98
+ path : ../swift-wasm-DEVELOPMENT-SNAPSHOT-ubuntu20.04 .tar.gz
99
99
# - name: Pack test results
100
100
# run: tar cJf swift-test-results.tar.gz ../build/*/swift-linux-x86_64/swift-test-results
101
101
# - name: Upload test results
@@ -140,6 +140,7 @@ jobs:
140
140
with :
141
141
name : macos-test-results
142
142
path : ./swift-test-results.tar.gz
143
+
143
144
macos_smoke_test :
144
145
name : Run smoke tests on macOS
145
146
runs-on : macos-latest
@@ -176,15 +177,15 @@ jobs:
176
177
name : macos-hello.wasm
177
178
path : hello.wasm
178
179
179
- ubuntu_1804_smoke_test :
180
+ ubuntu1804_smoke_test :
180
181
name : Run smoke tests on Ubuntu 18.04
181
182
runs-on : ubuntu-18.04
182
- needs : ubuntu_1804_build
183
+ needs : ubuntu1804_build
183
184
steps :
184
185
- name : Download installable Ubuntu 18.04 archive
185
186
uses : actions/download-artifact@v1
186
187
with :
187
- name : ubuntu_18 .04-installable
188
+ name : ubuntu18 .04-installable
188
189
- name : Build hello.wasm
189
190
shell : bash
190
191
run : |
@@ -209,5 +210,41 @@ jobs:
209
210
- name : Upload hello.wasm compiled with Ubuntu 18.04 package
210
211
uses : actions/upload-artifact@v1
211
212
with :
212
- name : linux -hello.wasm
213
+ name : ubuntu18.04 -hello.wasm
213
214
path : hello.wasm
215
+
216
+ ubuntu2004_smoke_test :
217
+ name : Run smoke tests on Ubuntu 20.04
218
+ runs-on : ubuntu-20.04
219
+ needs : ubuntu2004_build
220
+ steps :
221
+ - name : Download installable Ubuntu 20.04 archive
222
+ uses : actions/download-artifact@v1
223
+ with :
224
+ name : ubuntu20.04-installable
225
+ - name : Build hello.wasm
226
+ shell : bash
227
+ run : |
228
+ set -x
229
+ tar xf $(find . -name "swift-wasm-*.tar.gz" -type f)
230
+ TOOLCHAIN_PATH=$(find "$PWD" -name "swift-wasm-*" -type d)
231
+ echo 'print("Hello, world!")' > hello.swift
232
+ $TOOLCHAIN_PATH/usr/bin/swiftc \
233
+ -target wasm32-unknown-wasi \
234
+ -sdk $TOOLCHAIN_PATH/usr/share/wasi-sysroot \
235
+ hello.swift -o hello.wasm && \
236
+ echo "Successfully linked hello.wasm"
237
+ - name : Test SwiftPM
238
+ shell : bash
239
+ run : |
240
+ set -x
241
+ TOOLCHAIN_PATH=$(find "$PWD" -name "swift-wasm-*" -type d)
242
+ mkdir test
243
+ cd test
244
+ $TOOLCHAIN_PATH/usr/bin/swift package init
245
+ $TOOLCHAIN_PATH/usr/bin/swift build --triple wasm32-unknown-wasi
246
+ - name : Upload hello.wasm compiled with Ubuntu 20.04 package
247
+ uses : actions/upload-artifact@v1
248
+ with :
249
+ name : ubuntu2004-hello.wasm
250
+ path : hello.wasm
0 commit comments