build #881
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 | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '**/*.md' # .md files anywhere in the repo | |
- '**/LICENSE' # LICENSE files anywhere in the repo | |
- '**/.gitignore' # .gitignore files anywhere in the repo | |
- '**/*.png' # .png image files anywhere in the repo | |
- '**/*.pdf' # .pdf files anywhere in the repo | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**/*.md' # .md files anywhere in the repo | |
- '**/LICENSE' # LICENSE files anywhere in the repo | |
- '**/.gitignore' # .gitignore files anywhere in the repo | |
- '**/*.png' # .png image files anywhere in the repo | |
- '**/*.pdf' # .pdf files anywhere in the repo | |
workflow_dispatch: | |
schedule: | |
- cron: '30 10 * * *' # once a day @ 10:30am UTC (3:30am PST) | |
jobs: | |
macOS: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable # Sometimes a newer version of Xcode is available but isn't yet made default | |
- name: Build | |
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "MarkersExtractor-Package" -destination "generic/platform=macOS,name=Any Mac" | xcpretty && exit ${PIPESTATUS[0]} | |
# xcodebuild test reference: | |
# https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/08-automation.html |