|
| 1 | +name: build |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + paths-ignore: |
| 7 | + - '**/*.md' # .md files anywhere in the repo |
| 8 | + - '**/LICENSE' # LICENSE files anywhere in the repo |
| 9 | + - '**/.gitignore' # .gitignore files anywhere in the repo |
| 10 | + - '**/*.png' # .png image files anywhere in the repo |
| 11 | + - '**/*.pdf' # .pdf files anywhere in the repo |
| 12 | + |
| 13 | + pull_request: |
| 14 | + branches: [main] |
| 15 | + paths-ignore: |
| 16 | + - '**/*.md' # .md files anywhere in the repo |
| 17 | + - '**/LICENSE' # LICENSE files anywhere in the repo |
| 18 | + - '**/.gitignore' # .gitignore files anywhere in the repo |
| 19 | + - '**/*.png' # .png image files anywhere in the repo |
| 20 | + - '**/*.pdf' # .pdf files anywhere in the repo |
| 21 | + |
| 22 | + workflow_dispatch: |
| 23 | + |
| 24 | + schedule: |
| 25 | + - cron: '35 13 * * *' # once a day @ 2:35am UTC (7:35am PST) |
| 26 | + |
| 27 | +env: |
| 28 | + SCHEME: "MenuBarExtraAccess-CI" |
| 29 | + |
| 30 | +jobs: |
| 31 | + macOS: |
| 32 | + name: macOS 15 |
| 33 | + runs-on: macos-15 |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@main |
| 36 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 37 | + with: |
| 38 | + xcode-version: latest-stable |
| 39 | + - name: Build |
| 40 | + run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcpretty && exit ${PIPESTATUS[0]} |
| 41 | + - name: Unit Tests |
| 42 | + run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcpretty && exit ${PIPESTATUS[0]} |
| 43 | + |
| 44 | + macOS-swift6: |
| 45 | + name: macOS 15 (Swift 6) |
| 46 | + runs-on: macos-15 |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@main |
| 49 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 50 | + with: |
| 51 | + xcode-version: latest-stable |
| 52 | + - name: Set Package to Swift 6.0 |
| 53 | + run: swift package tools-version --set "6.0" |
| 54 | + - name: Build |
| 55 | + run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcpretty && exit ${PIPESTATUS[0]} |
| 56 | + - name: Unit Tests |
| 57 | + run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcpretty && exit ${PIPESTATUS[0]} |
0 commit comments