Move wxMac and wxiOS builds to Mac CI workflow

Still run them on GitHub runners, but do it using the same steps as for
our own builds, as there should be no reason to have any difference
in the build steps independently of where exactly they run.

Also remove checks for matrix.skip_testing from the Unix CI workflow as
they are not needed there any more because the tests are always run.

This commit is best viewed with --color-moved git option.
This commit is contained in:
Vadim Zeitlin
2021-08-28 23:38:53 +02:00
parent 446268b61c
commit dd33dc2d68
2 changed files with 27 additions and 25 deletions

View File

@@ -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,7 +183,6 @@ 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 if [ !${{ matrix.skip_gui }} ]; then
@@ -207,7 +191,6 @@ jobs:
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 +217,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.skip_gui != true && matrix.use_xvfb
working-directory: tests working-directory: tests
run: | run: |
if [ ${{ matrix.use_asan }} ]; then if [ ${{ matrix.use_asan }} ]; then
@@ -264,17 +247,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_gui != 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
- 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"

View File

@@ -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"