Skip to content

Commit

Permalink
add wxwidgets version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorino committed Mar 16, 2024
1 parent 16d15ae commit 431e47c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ permissions:
env:
WXWIDGETS_ROOT: ${{ github.workspace }}/ext/wxWidgets
WXWIN_INSTALL: ${{ github.workspace }}/ext/wxWidgets/install
WXWIDGETS_LATEST_STABLE: 3.2.4

jobs:
build:
Expand Down Expand Up @@ -284,7 +285,16 @@ jobs:
if [ "${{ matrix.wxw_type }}" == "develop" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WXWIN_INSTALL/lib
fi
wxruby check
wxruby check
- name: Check embedded wxWidgets version
if: matrix.wxw_type == 'embed'
run: |
if [ "${{ matrix.wxr_type }}" == "develop" ]; then
bundle exec rake wxruby:exec[ruby,-r,wx,-e,"\"fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$WXWIDGETS_LATEST_STABLE'\""]
else
ruby -r wx -e "fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$WXWIDGETS_LATEST_STABLE'"
fi
- name: Run wxRuby3 regression tests
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
NSUnbufferedIO: YES
WXWIDGETS_ROOT: ${{ github.workspace }}/ext/wxWidgets
WXWIN_INSTALL: ${{ github.workspace }}/ext/wxWidgets/install
WXWIDGETS_LATEST_STABLE: 3.2.4

steps:
- name: Show default Ruby
Expand Down Expand Up @@ -328,6 +329,15 @@ jobs:
run: |
wxruby check
- name: Check embedded wxWidgets version
if: matrix.wxw_type == 'embed'
run: |
if [ "${{ matrix.wxr_type }}" == "develop" ]; then
bundle exec rake wxruby:exec[ruby,-r,wx,-e,"\"fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$WXWIDGETS_LATEST_STABLE'\""]
else
ruby -r wx -e "fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$WXWIDGETS_LATEST_STABLE'"
fi
- name: Run wxRuby3 regression tests
run: |
if [ "${{ matrix.wxr_type }}" == "develop" ]; then
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/msw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ env:
DOXYGEN_ROOT: ${{ github.workspace }}\doxygen
WXWIDGETS_ROOT: ${{ github.workspace }}\ext\wxWidgets
WXWIN_ROOT: ${{ github.workspace }}\ext\wxWidgets\install
# WXRUBY_RELEASE: 1
WXWIDGETS_LATEST_STABLE: 3.2.4

jobs:
build:
Expand Down Expand Up @@ -216,6 +216,16 @@ jobs:
run: |
wxruby check
- name: Check embedded wxWidgets version
if: matrix.wxw_type == 'embed'
run: |
If ("${{ matrix.wxr_type }}" -eq "develop") {
bundle exec rake wxruby:exec[ruby,-r,wx,-e,"\"fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$env:WXWIDGETS_LATEST_STABLE'\""]
}
Else {
ruby -r wx -e "fail 'ERROR' unless Wx::WXWIDGETS_VERSION == '$env:WXWIDGETS_LATEST_STABLE'"
}
- name: Run wxRuby3 regression tests
run: |
If ("${{ matrix.wxr_type }}" -eq "develop") {
Expand Down

0 comments on commit 431e47c

Please sign in to comment.