Skip to content

Commit

Permalink
Merge pull request #148 from dmalec/fix-osx-cd-build
Browse files Browse the repository at this point in the history
Fix OSX CD build
  • Loading branch information
jrincayc authored Jan 17, 2023
2 parents 0491c89 + 625f713 commit d810567
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
INNO_VERSION: 6.1.2
WX_WIDGETS_VERSION: 3.0.5
TARGET_OSX_VERSION: 10.14

jobs:

Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
run: |
mkdir build-static
cd build-static
../configure --disable-shared --enable-unicode --with-macosx-version-min=10.14
../configure --disable-shared --enable-unicode --with-macosx-version-min=${{ env.TARGET_OSX_VERSION }}
make -j2
build_wxwidgets_windows:
Expand Down Expand Up @@ -152,13 +153,18 @@ jobs:
brew install
autoconf-archive
automake
wxwidgets
- name: wxWidgets Cache
uses: actions/cache@v3
id: wxwidgets-cache
with:
path: ${{ runner.temp }}/wxWidgets-${{ env.WX_WIDGETS_VERSION }}
key: ${{ runner.os }}-wxWidgets-${{ env.WX_WIDGETS_VERSION }}
- name: Install wxwidgets
# Install wxwidgets from cache on build machine so autoconf has WX_CONFIG_CHECK
working-directory: ${{ runner.temp }}/wxWidgets-${{ env.WX_WIDGETS_VERSION }}
run: |
cd build-static
make install
- name: Checkout Repository
uses: actions/checkout@v3
with:
Expand All @@ -171,6 +177,10 @@ jobs:
- name: Build Logo
env:
WX_CONFIG_PATH: ${{ runner.temp }}/wxWidgets-${{ env.WX_WIDGETS_VERSION }}/build-static/wx-config
CFLAGS: -mmacosx-version-min=${{ env.TARGET_OSX_VERSION }}
CPPFLAGS: -mmacosx-version-min=${{ env.TARGET_OSX_VERSION }}
CXXFLAGS: -mmacosx-version-min=${{ env.TARGET_OSX_VERSION }}
LDFLAGS: -mmacosx-version-min=${{ env.TARGET_OSX_VERSION }}
run: |
autoreconf --install
./configure --enable-gitid --with-wx-config=$WX_CONFIG_PATH
Expand Down

0 comments on commit d810567

Please sign in to comment.