Skip to content

Create test22.yml

Create test22.yml #10

Workflow file for this run

name: test13
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 to the latest macOS SDK, and ARCHS and VALID_ARCHS settings
sed -i '' 's/SDKROOT = macosx[0-9.]*/SDKROOT = macosx/g' FuseMFS.xcodeproj/project.pbxproj
sed -i '' 's/ARCHS = .*/ARCHS = "$(ARCHS_STANDARD_64_BIT)"/g' FuseMFS.xcodeproj/project.pbxproj
sed -i '' 's/VALID_ARCHS = .*/VALID_ARCHS = "arm64 x86_64"/g' FuseMFS.xcodeproj/project.pbxproj
sed -i '' 's/ONLY_ACTIVE_ARCH = .*/ONLY_ACTIVE_ARCH = YES/g' 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'