Skip to content

Commit

Permalink
Merge pull request #243 from mcorino/develop
Browse files Browse the repository at this point in the history
update release workflows for new setup
  • Loading branch information
mcorino authored Feb 4, 2024
2 parents 70b4d32 + 91a381c commit 56869d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,7 @@ jobs:
- name: Generate wxRuby3 docs
run: |
BUILD_CMD="bundle exec rake doc WXRUBY_FULLDOCS=1"
/bin/bash -o pipefail -c "xvfb-run -a -s '-screen 0 1600x1200x24' $BUILD_CMD 2>&1 | tee -a gembuild.out" || rc=$?
if [ -n "$rc" ]; then
if fgrep -q '(core dumped)' gembuild.out; then
echo '*** Test crashed, trying to get more information ***'
gdb --quiet --core=core -ex 'where' -ex 'thread apply all bt' -ex 'q' --args $BUILD_CMD
fi
exit $rc
fi
bundle exec rake doc WXRUBY_FULLDOCS=1
- name: Build wxRuby3 HTML docs
run: |
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,9 @@ jobs:
- name: Install wxRuby3 gem
run: |
if [ "$WXRUBY_PRERELEASE" == "1" ]; then
BUILD_CMD="gem install wxruby3 -v $WXRUBY_VERSION --pre"
gem install wxruby3 -v $WXRUBY_VERSION --pre && wxruby setup --autoinstall
else
BUILD_CMD="gem install wxruby3 -v $WXRUBY_VERSION"
fi
/bin/bash -o pipefail -c "xvfb-run -a -s '-screen 0 1600x1200x24' $BUILD_CMD 2>&1 | tee -a gembuild.out" || rc=$?
if [ -n "$rc" ]; then
if fgrep -q '(core dumped)' gembuild.out; then
echo '*** Test crashed, trying to get more information ***'
gdb --quiet --core=core -ex 'where' -ex 'thread apply all bt' -ex 'q' --args $BUILD_CMD
fi
exit $rc
gem install wxruby3 -v $WXRUBY_VERSION && wxruby setup --autoinstall
fi
- name: Run wxRuby3 regression tests
Expand Down Expand Up @@ -270,9 +262,9 @@ jobs:
- name: Install wxRuby3 gem
run: |
if [ "$WXRUBY_PRERELEASE" == "1" ]; then
gem install wxruby3 -v $WXRUBY_VERSION --pre -- WITH_WXWIN=1
gem install wxruby3 -v $WXRUBY_VERSION --pre && wxruby setup --autoinstall
else
gem install wxruby3 -v $WXRUBY_VERSION -- WITH_WXWIN=1
gem install wxruby3 -v $WXRUBY_VERSION && wxruby setup --autoinstall
fi
- name: Run wxRuby3 regression tests
Expand Down

0 comments on commit 56869d4

Please sign in to comment.