-
-
Notifications
You must be signed in to change notification settings - Fork 19
55 lines (47 loc) · 1.46 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
push:
paths:
- '.github/workflows/build.yml'
- 'Mythic.xcodeproj/**'
- 'Mythic/**'
pull_request:
paths:
- '.github/workflows/build.yml'
- 'Mythic.xcodeproj/**'
- 'Mythic/**'
workflow_dispatch:
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Debug - List directory contents
run: ls -R
- name: Debug - Print environment variables
run: env
- name: Install Command Line Tools for Xcode (if it's not installed)
run: |
echo "Checking Xcode Command Line Tools..."
if xcode-select --version >/dev/null 2>&1; then
echo "Xcode Command Line Tools is installed, skipping."
else
echo "Xcode Command Line Tools is not installed, installing."
xcode-select --install
fi
- name: Debug - Xcode version
run: xcodebuild -version
- name: Debug - Available Xcode schemes
run: xcodebuild -list -project Mythic.xcodeproj
- name: Build
run: |
echo "Starting build process..."
set -x # Enable command echoing
xcodebuild -scheme Mythic CODE_SIGNING_ALLOWED=NO SWIFTLINT=NO -verbose
set +x # Disable command echoing
- name: Debug - Build artifacts
if: failure()
run: |
echo "Listing build artifacts..."
ls -R ~/Library/Developer/Xcode/DerivedData