-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (43 loc) · 1.07 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
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [ main ]
paths-ignore:
- Examples/**
pull_request:
branches: [ main ]
paths-ignore:
- Examples/**
jobs:
run-macos:
name: ${{ matrix.subcommand }} with Xcode ${{ matrix.xcode }} on macOS
runs-on: macos-11
strategy:
matrix:
xcode: ["13.2"]
subcommand: ["Build", "Test"]
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.subcommand }}
run: |
xcodebuild -version
swift --version
swift package --version
subcommand=`echo ${{ matrix.subcommand }} | tr '[:upper:]' '[:lower:]'`
swift $subcommand -v
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
run-ubuntu:
name: Build and Test with Swift ${{ matrix.swift }} on Ubuntu
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
strategy:
matrix:
swift: ["5.5.2"]
steps:
- uses: actions/checkout@v2
- name: Build and Test
run: |
swift --version
swift package --version
swift test -v