This repository was archived by the owner on Feb 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
106 lines (103 loc) · 2.76 KB
/
XcodeGraph.yml
File metadata and controls
106 lines (103 loc) · 2.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: XcodeGraph
on:
push:
branches:
- "main"
tags-ignore:
- "**"
paths:
- "**/*.swift"
- ".github/workflows/*.yml"
pull_request:
paths:
- "**/*.swift"
- ".github/workflows/*.yml"
concurrency:
group: XcodeGraph-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MISE_EXPERIMENTAL: 1
TUIST_CONFIG_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
jobs:
spm_test:
name: SPM Test
strategy:
matrix:
os:
- ubuntu-22.04
- macos-15
swift-version:
- "6.0.3"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Setup Swift
if: matrix.os == 'ubuntu-22.04'
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
# DEBUG mode
- name: Build with debug mode.
id: debug_build
run: swift build --configuration debug
continue-on-error: true
- name: Retry build with debug mode if necessary
if: steps.debug_build.outcome == 'failure'
run: |
swift build --configuration debug
- name: Test on Linux
if: matrix.os == 'ubuntu-22.04'
# These momdules rely on some Xcode utilities like xcode-select
run: swift test --skip XcodeGraphMapperTests --skip XcodeMetadataTests
- name: Test
if: matrix.os != 'ubuntu-22.04'
run: swift test
spm_build:
name: SPM Build
strategy:
matrix:
os:
- ubuntu-22.04
- macos-15
swift-version:
- "6.0.3"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Setup Swift
if: matrix.os == 'ubuntu-22.04'
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
# DEBUG mode
- name: Build with debug mode.
id: debug_build
run: swift build --configuration debug
continue-on-error: true
- name: Retry build with debug mode if necessary
if: steps.debug_build.outcome == 'failure'
run: |
swift build --configuration debug
# RELEASE mode
- name: Build with release mode.
id: release_build
run: swift build --configuration release
continue-on-error: true
- name: Retry build with release mode if necessary
if: steps.release_build.outcome == 'failure'
run: |
swift build --configuration release
lint:
name: Lint
strategy:
matrix:
os:
- macos-15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: jdx/mise-action@v2
with:
version: 2024.11.8
- name: Lint
run: mise run lint