-
Notifications
You must be signed in to change notification settings - Fork 59
34 lines (32 loc) · 1 KB
/
main.yml
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
name: CI
on:
pull_request:
branches:
- master
jobs:
mac:
name: Mac
runs-on: macOS-11
steps:
- name: Checkout
uses: actions/checkout@master
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_13.1.app/Contents/Developer
- name: Test
run: xcodebuild clean test -scheme "Promise" -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.0'
linux:
name: Linux
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@master
- name: Make directory
run: mkdir tests
- name: Download and Install Swift
run: curl https://download.swift.org/swift-5.5.1-release/ubuntu1804/swift-5.5.1-RELEASE/swift-5.5.1-RELEASE-ubuntu18.04.tar.gz -s -L | tar xz -C tests &> /dev/null
- name: Update apt
run: sudo apt-get update
- name: Install clang and libicu
run: sudo apt-get install clang libicu-dev
- name: Run Test
run: ./tests/swift-5.5.1-RELEASE-ubuntu18.04/usr/bin/swift test