Fix build action #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 for macos platform | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
# https://stackoverflow.com/a/72408109/6942800 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_and_test: | |
name: ${{ matrix.command }} on ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }}) | |
runs-on: ${{ matrix.macos }} | |
strategy: | |
fail-fast: false | |
matrix: | |
macos: ['macos-14'] | |
xcode: ['15.4'] | |
scheme: ['TheBoringWorker'] | |
command: ['build'] | |
platform: ['macOS'] | |
swift: ['5.10'] | |
steps: | |
- name: Switch xcode to ${{ matrix.xcode }} | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: ${{ matrix.xcode }} | |
- name: Double-check macOS version (${{ matrix.macos }}) | |
run: sw_vers | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Check xcodebuild version | |
run: xcodebuild -version | |
- name: Check xcode embedded SDKs | |
run: xcodebuild -showsdks | |
- name: Show buildable schemes | |
run: xcodebuild -list | |
- name: Show eligible build destinations for ${{ matrix.scheme }} | |
run: xcodebuild -showdestinations -scheme ${{ matrix.scheme }} | |
- uses: mxcl/[email protected] | |
with: | |
platform: ${{ matrix.platform }} | |
scheme: ${{ matrix.scheme }} | |
action: ${{ matrix.command }} | |
code-coverage: true | |
verbosity: xcpretty | |
upload-logs: always |