build #292
This file contains hidden or 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 | |
permissions: | |
contents: read | |
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: '35 13 * * *' # once a day @ 2:35am UTC (7:35am PST) | |
env: | |
SCHEME: "MenuBarExtraAccess-CI" | |
jobs: | |
macOS-13: | |
name: macOS 13 | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Build | |
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
# - name: Unit Tests | |
# run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
macOS-14: | |
name: macOS 14 | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Build | |
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
# - name: Unit Tests | |
# run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
macOS: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Build | |
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
# - name: Unit Tests | |
# run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
macOS-swift6: | |
name: macOS (Swift 6) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Set Package to Swift 6.0 | |
run: swift package tools-version --set "6.0" | |
- name: Build | |
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
# - name: Unit Tests | |
# run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
examples: | |
name: Examples | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Menu-Based MenuBarExtra Demo - Resolve Package Dependencies # needed because sometimes xcodebuild fails otherwise | |
run: xcodebuild -project "Examples/Menu-Based MenuBarExtra Demo/Demo.xcodeproj" -resolvePackageDependencies | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
- name: Menu-Based MenuBarExtra Demo - Build | |
run: xcodebuild build -project "Examples/Menu-Based MenuBarExtra Demo/Demo.xcodeproj" -scheme "Demo" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
- name: Multiple MenuBarExtra Demo - Resolve Package Dependencies # needed because sometimes xcodebuild fails otherwise | |
run: xcodebuild -project "Examples/Multiple MenuBarExtra Demo/Demo.xcodeproj" -resolvePackageDependencies | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
- name: Multiple MenuBarExtra Demo - Build | |
run: xcodebuild build -project "Examples/Multiple MenuBarExtra Demo/Demo.xcodeproj" -scheme "Demo" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
- name: Window-Based MenuBarExtra Demo - Resolve Package Dependencies # needed because sometimes xcodebuild fails otherwise | |
run: xcodebuild -project "Examples/Window-Based MenuBarExtra Demo/Demo.xcodeproj" -resolvePackageDependencies | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} | |
- name: Window-Based MenuBarExtra Demo - Build | |
run: xcodebuild build -project "Examples/Window-Based MenuBarExtra Demo/Demo.xcodeproj" -scheme "Demo" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} |