fix mac build #20
Workflow file for this run
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 Hoods | |
# π https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_macOS: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Output XCode version | |
run: | | |
xcrun xcodebuild -version | |
- name: Build debug version | |
run: | | |
make build | |
- name: Test debug version | |
run: | | |
make test | |
build_iOS: | |
name: Build iOS | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Output XCode version | |
run: | | |
xcrun xcodebuild -version | |
- name: Show destinations | |
run: xcrun xcodebuild -showdestinations -scheme Hoods | |
- name: Build debug version | |
run: | | |
xcrun xcodebuild -skipMacroValidation -skipPackagePluginValidation build -scheme Hoods -destination generic/platform=ios | |
- name: Test debug version | |
run: | | |
xcrun xcodebuild -skipMacroValidation -skipPackagePluginValidation test -scheme Hoods -destination 'platform=iOS Simulator,name=iPhone 14' |