forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.05 KB
/
Copy pathtest.yml
File metadata and controls
37 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Run unit tests
on:
pull_request:
push:
branches: [main]
jobs:
test:
name: Build and Test
strategy:
matrix:
os: [macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04]
toolchain:
- wasm-5.5.0-RELEASE
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Run Test
run: |
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
export SWIFTENV_ROOT="$HOME/.swiftenv"
export PATH="$SWIFTENV_ROOT/bin:$PATH"
eval "$(swiftenv init -)"
SWIFT_VERSION=${{ matrix.toolchain }} make bootstrap
echo ${{ matrix.toolchain }} > .swift-version
make test
native-build:
# Check native build to make it easy to develop applications by Xcode
name: Build for native target
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- run: swift build
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer/