Merge branch 'ci-mac'
Define all Mac CI jobs in the same file and update the badges in the README to show badges for Unix/MSW/Mac builds separately. See https://github.com/wxWidgets/wxWidgets/pull/2504
This commit is contained in:
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
@@ -25,7 +25,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
@@ -98,16 +98,6 @@ jobs:
|
|||||||
runner: ubuntu-18.04
|
runner: ubuntu-18.04
|
||||||
configure_flags: --with-qt --enable-pch --without-opengl
|
configure_flags: --with-qt --enable-pch --without-opengl
|
||||||
skip_samples: true
|
skip_samples: true
|
||||||
- name: macOS 10.15 wxMac
|
|
||||||
runner: macos-10.15
|
|
||||||
configure_flags: --disable-sys-libs
|
|
||||||
- name: macOS 10.15 wxiOS
|
|
||||||
runner: macos-10.15
|
|
||||||
configure_flags: --with-osx_iphone --enable-monolithic --disable-sys-libs --host=i686-apple-darwin_sim --build=x86_64-apple-darwin17.7.0
|
|
||||||
xcode_sdk: iphonesimulator
|
|
||||||
skip_samples: true
|
|
||||||
skip_testing: true
|
|
||||||
allow_warnings: true
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }}
|
wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }}
|
||||||
@@ -170,11 +160,6 @@ jobs:
|
|||||||
wxCONFIGURE_OPTIONS="--with-gtk=${{ matrix.gtk_version }} $wxCONFIGURE_OPTIONS"
|
wxCONFIGURE_OPTIONS="--with-gtk=${{ matrix.gtk_version }} $wxCONFIGURE_OPTIONS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${{ matrix.xcode_sdk }}" ]; then
|
|
||||||
sdk_path=`xcrun --sdk ${{ matrix.xcode_sdk }} --show-sdk-path`
|
|
||||||
wxCONFIGURE_OPTIONS="--with-macosx-sdk=$sdk_path $wxCONFIGURE_OPTIONS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ${{ matrix.use_asan }} ]; then
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||||
wxASAN_CXXFLAGS=$wxASAN_CFLAGS
|
wxASAN_CXXFLAGS=$wxASAN_CFLAGS
|
||||||
@@ -198,16 +183,12 @@ jobs:
|
|||||||
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_ERROR_CXXFLAGS"
|
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_ERROR_CXXFLAGS"
|
||||||
|
|
||||||
- name: Building tests
|
- name: Building tests
|
||||||
if: matrix.skip_testing != true
|
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: |
|
run: |
|
||||||
if [ !${{ matrix.skip_gui }} ]; then
|
|
||||||
make $wxBUILD_ARGS failtest
|
make $wxBUILD_ARGS failtest
|
||||||
fi
|
|
||||||
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
||||||
|
|
||||||
- name: Testing
|
- name: Testing
|
||||||
if: matrix.skip_testing != true
|
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: |
|
run: |
|
||||||
. ../build/tools/httpbin.sh
|
. ../build/tools/httpbin.sh
|
||||||
@@ -234,7 +215,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Testing GUI using Xvfb
|
- name: Testing GUI using Xvfb
|
||||||
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb
|
if: matrix.use_xvfb
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ matrix.use_asan }} ]; then
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
@@ -264,17 +245,15 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Building samples
|
- name: Building samples
|
||||||
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.skip_samples != true
|
if: matrix.skip_samples != true
|
||||||
run: |
|
run: |
|
||||||
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" samples
|
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" samples
|
||||||
|
|
||||||
- name: Installing
|
- name: Installing
|
||||||
if: matrix.skip_testing != true
|
|
||||||
run: |
|
run: |
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
- name: Testing installation
|
- name: Testing installation
|
||||||
if: matrix.skip_testing != true
|
|
||||||
run: |
|
run: |
|
||||||
make -C samples/minimal -f makefile.unx clean
|
make -C samples/minimal -f makefile.unx clean
|
||||||
make -C samples/minimal -f makefile.unx $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
make -C samples/minimal -f makefile.unx $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
||||||
|
4
.github/workflows/ci_cmake.yml
vendored
4
.github/workflows/ci_cmake.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
@@ -26,7 +26,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
|
@@ -65,7 +65,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: /usr/bin/arch -arch ${{ matrix.arch }} /bin/bash -l {0}
|
shell: /usr/bin/arch -arch ${{ matrix.arch }} /bin/bash -l {0}
|
||||||
|
|
||||||
runs-on: self-hosted
|
runs-on: ${{ matrix.runner }}
|
||||||
|
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
|
|
||||||
@@ -73,16 +73,31 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: ARM C++11
|
- name: wxMac ARM C++11
|
||||||
|
runner: self-hosted
|
||||||
arch: arm64
|
arch: arm64
|
||||||
configure_flags: --with-cxx=11
|
configure_flags: --with-cxx=11
|
||||||
use_asan: true
|
use_asan: true
|
||||||
- name: Intel C++17
|
- name: wxMac Intel C++17
|
||||||
|
runner: self-hosted
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
configure_flags: --with-cxx=17 --with-macosx-version-min=10.12 --enable-debug
|
configure_flags: --with-cxx=17 --with-macosx-version-min=10.12 --enable-debug
|
||||||
- name: Universal C++14
|
- name: wxMac Universal C++14
|
||||||
|
runner: self-hosted
|
||||||
arch: arm64
|
arch: arm64
|
||||||
configure_flags: --with-cxx=14 --enable-universal_binary=arm64,x86_64 --disable-shared --disable-debug --enable-optimise
|
configure_flags: --with-cxx=14 --enable-universal_binary=arm64,x86_64 --disable-shared --disable-debug --enable-optimise
|
||||||
|
- name: wxMac macOS 10.15
|
||||||
|
runner: macos-10.15
|
||||||
|
arch: x86_64
|
||||||
|
configure_flags: --disable-sys-libs
|
||||||
|
- name: wxiOS
|
||||||
|
runner: macos-10.15
|
||||||
|
arch: x86_64
|
||||||
|
configure_flags: --with-osx_iphone --enable-monolithic --disable-sys-libs --host=i686-apple-darwin_sim --build=x86_64-apple-darwin17.7.0
|
||||||
|
xcode_sdk: iphonesimulator
|
||||||
|
skip_samples: true
|
||||||
|
skip_testing: true
|
||||||
|
allow_warnings: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
wxCONFIGURE_FLAGS: --disable-sys-libs --without-liblzma ${{ matrix.configure_flags }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }}
|
wxCONFIGURE_FLAGS: --disable-sys-libs --without-liblzma ${{ matrix.configure_flags }} --prefix=${{ github.workspace }}/localbin_${{ matrix.arch }}
|
||||||
@@ -137,6 +152,12 @@ jobs:
|
|||||||
- name: Configuring
|
- name: Configuring
|
||||||
run: |
|
run: |
|
||||||
wxCONFIGURE_OPTIONS="--disable-optimise $wxCONFIGURE_FLAGS"
|
wxCONFIGURE_OPTIONS="--disable-optimise $wxCONFIGURE_FLAGS"
|
||||||
|
|
||||||
|
if [ -n "${{ matrix.xcode_sdk }}" ]; then
|
||||||
|
sdk_path=`xcrun --sdk ${{ matrix.xcode_sdk }} --show-sdk-path`
|
||||||
|
wxCONFIGURE_OPTIONS="--with-macosx-sdk=$sdk_path $wxCONFIGURE_OPTIONS"
|
||||||
|
fi
|
||||||
|
|
||||||
./configure $wxCONFIGURE_OPTIONS --disable-debug_info || rc=$?
|
./configure $wxCONFIGURE_OPTIONS --disable-debug_info || rc=$?
|
||||||
if [ ${{ matrix.use_asan }} ]; then
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||||
@@ -161,9 +182,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Building tests
|
- name: Building tests
|
||||||
run: |
|
run: |
|
||||||
if [ !${{ matrix.skip_gui }} ]; then
|
|
||||||
make -C tests $wxBUILD_ARGS failtest
|
make -C tests $wxBUILD_ARGS failtest
|
||||||
fi
|
|
||||||
make -k -C tests $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
make -k -C tests $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"
|
||||||
|
|
||||||
- name: Testing
|
- name: Testing
|
||||||
@@ -181,7 +200,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Building samples
|
- name: Building samples
|
||||||
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.skip_samples != true
|
if: matrix.skip_testing != true && matrix.skip_samples != true
|
||||||
run: |
|
run: |
|
||||||
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" samples
|
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" samples
|
||||||
|
|
4
.github/workflows/ci_msw.yml
vendored
4
.github/workflows/ci_msw.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
@@ -27,7 +27,7 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw_cross.yml'
|
- '.github/workflows/ci_msw_cross.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
|
4
.github/workflows/ci_msw_cross.yml
vendored
4
.github/workflows/ci_msw_cross.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
@@ -29,7 +29,7 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/ci.yml'
|
||||||
- '.github/workflows/ci_cmake.yml'
|
- '.github/workflows/ci_cmake.yml'
|
||||||
- '.github/workflows/ci_mac_selfhosted.yml'
|
- '.github/workflows/ci_mac.yml'
|
||||||
- '.github/workflows/ci_msw.yml'
|
- '.github/workflows/ci_msw.yml'
|
||||||
- 'build/tools/appveyor*.bat'
|
- 'build/tools/appveyor*.bat'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
|
@@ -20,7 +20,11 @@ Platforms
|
|||||||
---------
|
---------
|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/wxWidgets/wxwidgets)
|
[](https://ci.appveyor.com/project/wxWidgets/wxwidgets)
|
||||||
[](https://github.com/wxWidgets/wxWidgets/actions)
|
[](https://github.com/wxWidgets/wxWidgets/actions/workflows/ci.yml)
|
||||||
|
[](https://github.com/wxWidgets/wxWidgets/actions/workflows/ci_cmake.yml)
|
||||||
|
[](https://github.com/wxWidgets/wxWidgets/actions/workflows/ci_msw.yml)
|
||||||
|
[](https://github.com/wxWidgets/wxWidgets/actions/workflows/ci_msw_cross.yml)
|
||||||
|
[](https://github.com/wxWidgets/wxWidgets/actions/workflows/ci_mac.yml)
|
||||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:wxwidgets)
|
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:wxwidgets)
|
||||||
|
|
||||||
This version of wxWidgets supports the following primary platforms:
|
This version of wxWidgets supports the following primary platforms:
|
||||||
|
Reference in New Issue
Block a user