Create compile.yml #1
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: Build Cork | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
# Set up Xcode environment if needed | ||
#- name : Set up Xcode | ||
run : sudo xcode-select --switch /Applications/Xcode.app # Adjust if needed | ||
# Install dependencies (if any) | ||
#- name : Install dependencies | ||
run : | | ||
brew install cocoapods # If you have CocoaPods dependencies | ||
# Resolve dependencies and build project | ||
#- name : Resolve dependencies and build project | ||
run : | | ||
xcrun xcodebuild \ | ||
-project Cork.xcodeproj \ | ||
clean archive | xcpretty | ||
## Optionally, upload built app as artifact for download. | ||
- uses actions/upload-artifact@v2 with path .github/Cork.app.zip |