-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.2 KB
/
spm-lint.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
name: Swift Package Manager Lint
on:
workflow_run:
workflows:
- 'Build'
types:
- completed
branches:
- '**'
jobs:
spm-lint:
name: Lint Package For Swift Package Manager
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=iOS Simulator',
'generic/platform=iOS',
'generic/platform=macOS',
'generic/platform=tvOS Simulator']
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1.0'
- name: Update Packages
run: |
swift package update
- name: Build Project
env:
project: ./.github/workflows/SPMDummy/SPMDummy.xcodeproj
scheme: SPMDummy
destination: ${{ matrix.destination }}
run: |
xcodebuild clean build -project "${project}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}