File tree 4 files changed +7
-20
lines changed
4 files changed +7
-20
lines changed Original file line number Diff line number Diff line change 6
6
jobs :
7
7
test :
8
8
name : Check source code compatibility
9
- runs-on : Ubuntu-18 .04
9
+ runs-on : ubuntu-20 .04
10
10
steps :
11
11
- name : Checkout
12
12
uses : actions/checkout@v2
13
13
with :
14
14
fetch-depth : 1
15
+ - uses : swiftwasm/setup-swiftwasm@v1
15
16
- name : Run Test
16
17
run : |
17
18
set -eux
18
- git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
19
- export SWIFTENV_ROOT="$HOME/.swiftenv"
20
- export PATH="$SWIFTENV_ROOT/bin:$PATH"
21
- eval "$(swiftenv init -)"
22
19
make bootstrap
23
20
cd Example/JavaScriptKitExample
24
21
swift build --triple wasm32-unknown-wasi
Original file line number Diff line number Diff line change @@ -4,18 +4,15 @@ on: [pull_request]
4
4
5
5
jobs :
6
6
perf :
7
- runs-on : Ubuntu-18 .04
7
+ runs-on : ubuntu-20 .04
8
8
steps :
9
9
- name : Checkout
10
10
uses : actions/checkout@master
11
11
with :
12
12
fetch-depth : 1
13
+ - uses : swiftwasm/setup-swiftwasm@v1
13
14
- name : Run Benchmark
14
15
run : |
15
- git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
16
- export SWIFTENV_ROOT="$HOME/.swiftenv"
17
- export PATH="$SWIFTENV_ROOT/bin:$PATH"
18
- eval "$(swiftenv init -)"
19
16
make bootstrap
20
17
make perf-tester
21
18
node ci/perf-tester
Original file line number Diff line number Diff line change 33
33
uses : actions/checkout@master
34
34
with :
35
35
fetch-depth : 1
36
- - name : Install swiftenv
37
- run : |
38
- git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
39
- export SWIFTENV_ROOT="$HOME/.swiftenv"
40
- export PATH="$SWIFTENV_ROOT/bin:$PATH"
41
- eval "$(swiftenv init -)"
42
- echo $PATH >> $GITHUB_PATH
43
- env >> $GITHUB_ENV
44
- echo ${{ matrix.entry.toolchain }} > .swift-version
36
+ - uses : swiftwasm/setup-swiftwasm@v1
37
+ with :
38
+ swift-version : ${{ matrix.entry.toolchain }}
45
39
- run : make bootstrap
46
40
- run : make test
47
41
- run : make unittest
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
2
2
3
3
.PHONY : bootstrap
4
4
bootstrap :
5
- ./scripts/install-toolchain.sh
6
5
npm ci
7
6
8
7
.PHONY : build
You can’t perform that action at this time.
0 commit comments