Skip to content

Commit 91e62ba

Browse files
authored
Merge pull request swiftlang#3 from kkk669/ci-linux
ci: Change runner from macOS to Linux
2 parents 437337e + 63141c0 commit 91e62ba

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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-
41
name: test
52

63
on:
@@ -11,23 +8,17 @@ on:
118

129
jobs:
1310
build:
14-
15-
runs-on: macos-13
16-
11+
runs-on: ubuntu-latest
1712
steps:
1813
- 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"
2117
- name: Install wasmtime
22-
run: brew install wasmtime
23-
- name: Install Wasm Toolchain
2418
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

0 commit comments

Comments
 (0)