File tree Expand file tree Collapse file tree 4 files changed +7
-20
lines changed Expand file tree Collapse file tree 4 files changed +7
-20
lines changed Original file line number Diff line number Diff line change 66jobs :
77 test :
88 name : Check source code compatibility
9- runs-on : Ubuntu-18 .04
9+ runs-on : ubuntu-20 .04
1010 steps :
1111 - name : Checkout
1212 uses : actions/checkout@v2
1313 with :
1414 fetch-depth : 1
15+ - uses : swiftwasm/setup-swiftwasm@v1
1516 - name : Run Test
1617 run : |
1718 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 -)"
2219 make bootstrap
2320 cd Example/JavaScriptKitExample
2421 swift build --triple wasm32-unknown-wasi
Original file line number Diff line number Diff line change @@ -4,18 +4,15 @@ on: [pull_request]
44
55jobs :
66 perf :
7- runs-on : Ubuntu-18 .04
7+ runs-on : ubuntu-20 .04
88 steps :
99 - name : Checkout
1010 uses : actions/checkout@master
1111 with :
1212 fetch-depth : 1
13+ - uses : swiftwasm/setup-swiftwasm@v1
1314 - name : Run Benchmark
1415 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 -)"
1916 make bootstrap
2017 make perf-tester
2118 node ci/perf-tester
Original file line number Diff line number Diff line change 3333 uses : actions/checkout@master
3434 with :
3535 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 }}
4539 - run : make bootstrap
4640 - run : make test
4741 - run : make unittest
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
22
33.PHONY : bootstrap
44bootstrap :
5- ./scripts/install-toolchain.sh
65 npm ci
76
87.PHONY : build
You can’t perform that action at this time.
0 commit comments