-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (39 loc) · 1.07 KB
/
build_test.yml
File metadata and controls
51 lines (39 loc) · 1.07 KB
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
49
50
51
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Install SwiftLint and SwiftFormat
run: brew install swiftlint swiftformat
- name: SwiftFormat
run: swiftformat --lint .
- name: SwiftLint
run: swiftlint
build:
name: Build
runs-on: macos-26
needs: lint
steps:
- uses: actions/checkout@v4
- name: Create local configuration
run: cp Outspire/Configurations.local.swift.example Outspire/Configurations.local.swift
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer
- name: Build
run: |
xcodebuild \
-project Outspire.xcodeproj \
-scheme "Outspire" \
-destination 'generic/platform=iOS Simulator' \
-skipPackagePluginValidation \
build