Skip to content

Commit ce04db0

Browse files
Add source code compatibility check CI
1 parent 6f31fc3 commit ce04db0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/compatibility.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check compatibility
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: Check source code compatibility
6+
runs-on: Ubuntu-18.04
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@master
10+
with:
11+
fetch-depth: 1
12+
- name: Run Test
13+
run: |
14+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
15+
export SWIFTENV_ROOT="$HOME/.swiftenv"
16+
export PATH="$SWIFTENV_ROOT/bin:$PATH"
17+
eval "$(swiftenv init -)"
18+
make bootstrap
19+
cd Example
20+
swift build --triple wasm32-unknonw-wasi

0 commit comments

Comments
 (0)