Create test22.yml #18
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: test5 | |
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 :SDKROOT macosx" fusemfs.xcodeproj/project.pbxproj | |
# Update the supported architectures to include arm64 | |
/usr/libexec/PlistBuddy -c "Set :ARCHS arm64" fusemfs.xcodeproj/project.pbxproj | |
/usr/libexec/PlistBuddy -c "Set :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: Run Tests | |
run: | | |
xcodebuild test -project fusemfs.xcodeproj -scheme fusemfs -configuration Debug -destination 'platform=macOS,arch=arm64' |