-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 944 Bytes
/
swift.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
# Author by chanhihi
# Date 2023.08.09
name: Swift Build
on:
push:
branches:
- feat/*
- fix/*
- refactor/*
pull_request:
branches:
- cluster_develop
jobs:
build:
name: Swift 5.3 on macOS 11 - Swift Build Test
runs-on: macos-11
env:
XCODE_VERSION: "12.4.0"
SWIFT_VERSION: "5.3"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode version
run: sudo xcode-select -s '/Applications/Xcode_12.4.0.app/Contents/Developer'
- name: Set SDK version
run: echo 'SDKROOT=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk' >> $GITHUB_ENV
- name: setup-swift
uses: swift-actions/setup-swift@v1
with:
swift-version: 5.3
- name: Build
run: |
mkdir Sources &&
mv Box42 Sources/Box42 &&
swift build