-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.31 KB
/
xcode.yml
File metadata and controls
50 lines (45 loc) · 1.31 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
name: Run Xcode Build
on:
workflow_call:
inputs:
os:
description: MacOS runner to run Xcode build on
required: false
type: string
default: macos-latest
swift:
description: Swift version to use
required: false
type: string
default: latest-stable
platforms:
description: Space separated platforms list
required: false
type: string
default: ''
tracked-files:
description: The files on which changes tracked and based on change actions are run
required: false
type: string
default: |
Sources/**/*.swift
Tests/**/*
*.xcodeproj/**/*
jobs:
xcode-test:
name: Build on ${{ inputs.os }} with xcode version ${{ inputs.xcode }}
runs-on: ${{ inputs.os }}
steps:
- name: Check should proceed running steps
id: precondition
uses: SwiftyLab/ci/actions/condition@main
with:
files: ${{ inputs.tracked-files }}
- name: Setup repository
if: steps.precondition.outputs.proceed == 'true'
uses: SwiftyLab/ci/actions/setup@main
with:
swift: ${{ inputs.swift }}
- name: Build with Xcode
if: steps.precondition.outputs.proceed == 'true'
run: npm run xcodebuild -- ${{ inputs.platforms }}