File tree 1 file changed +10
-19
lines changed 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will build a Swift project
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3
-
4
1
name : test
5
2
6
3
on :
11
8
12
9
jobs :
13
10
build :
14
-
15
- runs-on : macos-13
16
-
11
+ runs-on : ubuntu-latest
17
12
steps :
18
13
- uses : actions/checkout@v3
19
- - name : Select Xcode
20
- run : sudo xcode-select -s /Applications/Xcode_14.3.1.app
14
+ - uses : swiftwasm/setup-swiftwasm@v1
15
+ with :
16
+ swift-version : " wasm-DEVELOPMENT-SNAPSHOT-2023-08-07-a"
21
17
- name : Install wasmtime
22
- run : brew install wasmtime
23
- - name : Install Wasm Toolchain
24
18
run : |
25
- VERSION=swift-wasm-DEVELOPMENT-SNAPSHOT-2023-08-07-a
26
- TOOLCHAIN_URL="https://github.com/swiftwasm/swift/releases/download/$VERSION/$VERSION-macos_x86_64.pkg"
27
- curl -LO $TOOLCHAIN_URL
28
- installer -target CurrentUserHomeDirectory -pkg $VERSION-macos_x86_64.pkg
29
- echo "PATH=$HOME/Library/Developer/Toolchains/$VERSION.xctoolchain/usr/bin:${PATH}" >> $GITHUB_ENV
30
- - name : Build
31
- run : swift build -c release --build-tests --triple wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=524288
32
- - name : Run tests
33
- run : wasmtime --dir=/ .build/release/swift-syntaxPackageTests.wasm
19
+ curl https://wasmtime.dev/install.sh -sSf | bash
20
+ echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
21
+ - run : swift --version
22
+ - run : wasmtime -V
23
+ - run : swift build -c release --build-tests --triple wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=524288
24
+ - run : wasmtime --dir=/ .build/release/swift-syntaxPackageTests.wasm
You can’t perform that action at this time.
0 commit comments