forked from zydeco/fusemfs
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (71 loc) · 6.06 KB
/
test11.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
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
name: test11
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
update-and-build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Xcode
run: |
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
- name: Install dependencies
run: |
brew update
brew install cmake
- name: Update Xcode project settings
run: |
# Update the SDKROOT to use the latest macOS SDK
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928A08733DD80010E9CD:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928B08733DD80010E9CD:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
# Update the supported architectures to include only arm64 and x86_64
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928A08733DD80010E9CD:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928B08733DD80010E9CD:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928A08733DD80010E9CD:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928B08733DD80010E9CD:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928A08733DD80010E9CD:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:1DEB928B08733DD80010E9CD:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
# Apply the same settings for other targets
/usr/libexec/PlistBuddy -c "Set :objects:2840F33411AFEB9300685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33511AFEB9300685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33411AFEB9300685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33511AFEB9300685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33411AFEB9300685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33511AFEB9300685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33411AFEB9300685619:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F33511AFEB9300685619:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34C11AFEBC700685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34D11AFEBC700685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34C11AFEBC700685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34D11AFEBC700685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34C11AFEBC700685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34D11AFEBC700685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34C11AFEBC700685619:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F34D11AFEBC700685619:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39011AFECF500685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39111AFECF500685619:buildSettings:SDKROOT macosx" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39011AFECF500685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39111AFECF500685619:buildSettings:ARCHS '$(ARCHS_STANDARD_64_BIT)'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39011AFECF500685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39111AFECF500685619:buildSettings:VALID_ARCHS 'arm64 x86_64'" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39011AFECF500685619:buildSettings:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
/usr/libexec/PlistBuddy -c "Set :objects:2840F39111AFECF500685619:ONLY_ACTIVE_ARCH YES" FuseMFS.xcodeproj/project.pbxproj
- name: Build Xcode project for arm64
run: |
xcodebuild -project FuseMFS.xcodeproj -scheme fusemfs -configuration Release -arch arm64 build
- name: Build Xcode project for x86_64
run: |
xcodebuild -project FuseMFS.xcodeproj -scheme fusemfs -configuration Release -arch x86_64 build
- name: Run Tests for arm64
run: |
xcodebuild test -project FuseMFS.xcodeproj -scheme fusemfs -configuration Debug -destination 'platform=macOS,arch=arm64'
- name: Run Tests for x86_64
run: |
xcodebuild test -project FuseMFS.xcodeproj -scheme fusemfs -configuration Debug -destination 'platform=macOS,arch=x86_64'