Create test20.yml #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test12 | |
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 SDKROOT for Debug and Release configurations of the fusemfs target | |
/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 ARCHS, VALID_ARCHS, and ONLY_ACTIVE_ARCH for Debug and Release configurations of the fusemfs target | |
/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 | |
# Repeat the above commands for other targets (mfs, res, and any other targets) | |
# Update SDKROOT for mfs target | |
/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 | |
# Update ARCHS, VALID_ARCHS, and ONLY_ACTIVE_ARCH for mfs target | |
/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 | |
# Update SDKROOT for res target | |
/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 | |
# Update ARCHS, VALID_ARCHS, and ONLY_ACTIVE_ARCH for res target | |
/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 | |
# Update SDKROOT for fusemfs.util target | |
/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 | |
# Update ARCHS, VALID_ARCHS, and ONLY_ACTIVE_ARCH for fusemfs.util target | |
/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' |