2022-04-16 12:15:07 -04:00
|
|
|
name: Mac Xcode builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- '.github/workflows/ci_cmake.yml'
|
|
|
|
- '.github/workflows/ci_msw.yml'
|
|
|
|
- '.github/workflows/ci_msw_cross.yml'
|
|
|
|
- '.github/workflows/docs_update.yml'
|
2022-10-30 13:23:22 -04:00
|
|
|
- 'build/cmake/**'
|
2022-04-16 12:15:07 -04:00
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/msvc/**'
|
|
|
|
- 'include/wx/dfb/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/gtk1/**'
|
|
|
|
- 'include/wx/motif/**'
|
|
|
|
- 'include/wx/msw/**'
|
|
|
|
- 'include/wx/x11/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/dfb/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/gtk1/**'
|
|
|
|
- 'src/motif/**'
|
|
|
|
- 'src/msw/**'
|
|
|
|
- 'src/x11/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
2022-10-30 13:23:22 -04:00
|
|
|
- 'CMakeLists.txt'
|
2022-04-16 12:15:07 -04:00
|
|
|
- 'wxwidgets.props'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- '.github/workflows/ci_cmake.yml'
|
|
|
|
- '.github/workflows/ci_msw.yml'
|
|
|
|
- '.github/workflows/ci_msw_cross.yml'
|
|
|
|
- '.github/workflows/docs_update.yml'
|
2022-10-30 13:23:22 -04:00
|
|
|
- 'build/cmake/**'
|
2022-04-16 12:15:07 -04:00
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/msvc/**'
|
|
|
|
- 'include/wx/dfb/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/gtk1/**'
|
|
|
|
- 'include/wx/motif/**'
|
|
|
|
- 'include/wx/msw/**'
|
|
|
|
- 'include/wx/x11/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/dfb/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/gtk1/**'
|
|
|
|
- 'src/motif/**'
|
|
|
|
- 'src/msw/**'
|
|
|
|
- 'src/x11/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
2022-10-30 13:23:22 -04:00
|
|
|
- 'CMakeLists.txt'
|
2022-04-16 12:15:07 -04:00
|
|
|
- 'wxwidgets.props'
|
|
|
|
|
2022-06-26 20:33:51 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-04-16 12:15:07 -04:00
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: /usr/bin/arch -arch ${{ matrix.arch }} /bin/bash --noprofile --norc -eo pipefail {0}
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: macOS dynamic Release
|
|
|
|
runner: self-hosted
|
|
|
|
scheme: 'app-dynamic'
|
|
|
|
destination: 'generic/platform=macOS'
|
|
|
|
arch: x86_64
|
|
|
|
configuration: 'Release'
|
|
|
|
project: samples/minimal/minimal_cocoa.xcodeproj
|
|
|
|
- name: iOS static Debug
|
|
|
|
runner: macos-latest
|
|
|
|
scheme: 'static'
|
|
|
|
destination: 'generic/platform=iOS'
|
|
|
|
arch: x86_64
|
|
|
|
configuration: 'Debug'
|
|
|
|
project: build/osx/wxiphone.xcodeproj
|
|
|
|
- name: iOS Simulator static
|
|
|
|
runner: macos-latest
|
|
|
|
scheme: 'app-static'
|
|
|
|
destination: 'generic/platform=iOS Simulator'
|
|
|
|
arch: x86_64
|
|
|
|
configuration: 'Release'
|
|
|
|
project: samples/minimal/minimal_iphone.xcodeproj
|
|
|
|
|
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
|
|
|
NSUnbufferedIO: YES
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-12-17 21:22:54 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-04-16 12:15:07 -04:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
xcodebuild clean build ONLY_ACTIVE_ARCH=NO \
|
|
|
|
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \
|
|
|
|
-project '${{github.workspace}}/${{ matrix.project }}' \
|
|
|
|
-scheme '${{ matrix.scheme }}' -configuration '${{ matrix.configuration}}' \
|
|
|
|
-destination '${{ matrix.destination }}' | xcpretty --color --simple
|