forked from JohnSundell/ShellOut
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.29 KB
/
ci.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
47
48
name: CI
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
macOS:
# https://github.com/actions/runner-images
runs-on: macos-13
strategy:
matrix:
xcode: ['15.0', '14.3.1']
steps:
- uses: actions/checkout@v3
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Name"
- name: Get swift version
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version
- name: Test
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test
- name: Build release
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release
Linux:
# https://github.com/actions/runner-images
runs-on: ubuntu-latest
strategy:
matrix:
image: [
'swift:5.8',
'swift:5.9'
]
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Name"
- name: Get swift version
run: swift --version
- name: Test
run: swift test
- name: Build release
run: swift build -c release