-
Notifications
You must be signed in to change notification settings - Fork 75
40 lines (36 loc) · 961 Bytes
/
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
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SCHEME: "Widget Examples"
IOS_SDK: "iphonesimulator"
IOS_DESTINATION: "platform=iOS Simulator,name=Any iOS Simulator Device,OS=latest"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: SwiftLint
uses: norio-nomura/[email protected]
build:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Swift
uses: slashmo/[email protected]
with:
version: swift-5.9-DEVELOPMENT-SNAPSHOT-2023-07-04-a
- run: ls /Applications
- run: sudo xcode-select -s '/Applications/Xcode_15.0.app/Contents/Developer'
- name: Build
run: |
xcodebuild clean build \
-scheme "$SCHEME" \
-sdk "$IOS_SDK" \
-destination "$IOS_DESTINATION" \
CODE_SIGNING_ALLOWED=NO