Skip to content

Update compile.yml

Update compile.yml #3

Workflow file for this run

name: Build Cork
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Xcode environment if needed
run : sudo xcode-select --switch /Applications/Xcode.app # Adjust if needed
- name : Install dependencies (if any)
run : |
brew install cocoapods # If you have CocoaPods dependencies
- name : Delete corrupted Package.resolved file
run : rm ./Cork.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Check failure on line 26 in .github/workflows/compile.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/compile.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name : Resolve package dependencies
run :
xcrun xcodebuild \
-resolvePackages | xcpretty
# Build project
#-name resolve dependenices and build project
run :
xcrun xcoddebuild \-project Cork.xcoddeproj \clean archive | xcpretty
## Upload built app as artifact for download.
uses;actions/upload-artifact @ v2 with:path:.github/corkapp.zip
This setup will delete corrupted 'package resolved'file, resolve package dependecies,then proceed building uploading app