Vadim Zeitlin
3c7596f0ff
Switch to using Doxygen 1.9.1 for the documentation generation
...
This fixes the problem with empty descriptions in the annotated class
list and is a prerequisite for using custom CSS theme in the upcoming
commits.
Closes #22288 .
2022-07-02 16:10:21 +02:00
Vadim Zeitlin
7def27f1c2
Run ASAN CI builds under Ubuntu 22.04
...
Leak sanitizer regularly crashes under Ubuntu 20.04, so try using the
newer version in the hope that it will work better there.
2022-06-29 22:27:48 +02:00
naveen
64add326f6
Restrict job permissions in GitHub actions workflows
...
Restrict the GitHub token permissions only to the required ones, i.e.
just read-only access to the code.
This is done in order to reduce the potential harm in case of a
malicious pull request, see GitHub blog post at
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
Closes #22574 .
2022-06-28 14:00:44 +02:00
Vadim Zeitlin
e7785ac224
Merge branch 'bmp-read-fixes'
...
Fix and improve/simplify BMP reading code, in particular restoring
support for loading BI_BITFIELDS bitmaps broken some time ago.
See #22504 .
2022-06-10 17:17:56 +01:00
Vadim Zeitlin
94a7251d81
Make the issue template even more prescriptive
...
Some things that seem too obvious to say apparently are not, so do say
them explicitly, as having the leftover from the template in the bug
reports is really confusing.
2022-06-10 18:14:35 +02:00
Vadim Zeitlin
94303bd1c4
Exclude all hidden tests in Mac CI workflow
...
We need to explicitly exclude these tests, which are not supposed to be
run, when specifying the tests to run using exclusions.
2022-06-09 01:33:46 +01:00
Vadim Zeitlin
c65c0e44f3
Remove duplicated configure call from Mac CI workflow
...
This seems to have been accidentally added in 6afd2e8f87
(Revert "making
sure CI builds don’t contaminated checked out directory on self-hosted
runner", 2022-04-17).
2022-04-19 00:33:33 +02:00
Stefan Csomor
db49f840ab
Add GitHub Actions workflow for CI builds using Xcode
...
Also update the file used for Xcode builds to make them actually
succeed.
See #22321 .
2022-04-19 00:31:07 +02:00
Stefan Csomor
e5827d0ae9
using proper bash defaults
...
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
2022-04-18 17:37:03 +02:00
Stefan Csomor
6afd2e8f87
Revert "making sure CI builds don’t contaminated checked out directory on self-hosted runner"
...
This reverts commit 88bd6d0135
. we’re trying to use this approach: https://docs.github.com/en/actions/hosting-your-own-runners/running-scripts-before-or-after-a-job
2022-04-17 23:33:50 +02:00
Stefan Csomor
88bd6d0135
making sure CI builds don’t contaminated checked out directory on self-hosted runner
...
self-hosted runners are stateful - surprise - so we have to isolate things better
2022-04-17 20:47:54 +02:00
Vadim Zeitlin
73dc9086f5
Don't fail the entire CI run just because of cache saving error
...
Update ccache-action to a not yet released version including the fix for
failing the entire CI job if saving the cache failed -- this shouldn't
happen at all, but in practice it does happen from time to time, and
it's better to succeed, rather than fail in this case.
2022-04-16 16:07:20 +02:00
Vadim Zeitlin
e9aaca50c2
Fix the name of the test excluded in the CI builds using Wine
...
The apparently innocuous a0d1379a57
(Split wxDC::GetTextExtent() test
case in 3 pieces, 2022-03-29) has broken the CI builds because it moved
the code failing under Wine (apparently due to problems in metafile
support implementation) into a differently named test.
Fix this now by excluding the right test.
2022-03-30 00:55:17 +02:00
Vadim Zeitlin
ecbcbdc945
Use ccache in MSW cross build CI workflows too
...
This should hopefully help to speed up this build as well.
Unfortunately we can't easily use ccache for the Mac builds because this
requires having brew installed and we don't have it currently.
We probably can use it for CMake workflow but this probably requires
some arcane way of configuring CMake to use ccache that I'm not aware
about and would need to be done by someone else.
2022-03-29 21:00:57 +02:00
Vadim Zeitlin
54f3264886
Use latest version of ccache action in GitHub CI workflow
...
It has a number of fixes and it makes sense to standardize on this
version before starting to use it in the other workflows too.
2022-03-29 21:00:57 +02:00
Vadim Zeitlin
263b1844dc
Show only the updated files when uploading the docs
...
Don't use rsync "--verbose" option as it's too verbose, show just the
names of the files being uploaded.
2022-03-28 11:44:48 +02:00
Vadim Zeitlin
dfb4a3bd02
Run docs update workflow for pull requests too
...
Also run it only if any documentation-related files were modified.
2022-03-28 11:37:34 +02:00
Vadim Zeitlin
f26d25fcb6
Suppress ssh messages about adding known host in docs workflow
...
This is useless and contains the host IP and port which we don't want
want to show.
2022-03-28 11:33:25 +02:00
Vadim Zeitlin
4179d13dab
Fail the documentation build if there are any Doxygen warnings
...
Check for Doxygen warnings, that are, for the most part, actually
errors, to ensure that they don't creep back in after they were recently
fixed.
2022-03-28 11:16:53 +02:00
Vadim Zeitlin
fe944dec68
Only deploy the documentation from master
...
Don't do it for pull requests.
This check also seems to render the check for the repository owner
unnecessary, so drop it instead of keeping both.
2022-03-28 11:16:53 +02:00
Vadim Zeitlin
20b8ba1773
Add extra script to the docs created in GitHub Actions workflow
...
This was done by the cron job running in docs.wxwidgets.org before, so
keep doing it here.
2022-03-28 11:16:53 +02:00
Vadim Zeitlin
15ea25448f
Fix accidentally wrapped line in the docs workflow
2022-03-28 11:16:53 +02:00
Vadim Zeitlin
7e45373e16
Add a simple workflow for updating HTML docs online
...
Run doxygen and copy the generated files to docs.wxwidgets.org.
Ignore the new workflow in all the existing CI ones, as changes to it
shouldn't require rerunning them.
See #19126 .
2022-03-28 00:54:46 +02:00
Vadim Zeitlin
66723b671f
Ask whether X11 or Wayland is used in the bug report template
...
This is rather important, as many wxGTK bugs only manifest themselves
under one or the other, so ask to specify which one is used.
2022-02-19 22:36:50 +01:00
Vadim Zeitlin
1ce1d52878
Ask for GTK version and theme for wxGTK bug reports too
...
Co-Authored-By: PB <PBfordev@gmail.com>
2022-01-14 14:59:09 +01:00
Vadim Zeitlin
f502a9b5d7
Add an issue template for enhancement proposals
2022-01-14 01:49:14 +01:00
Vadim Zeitlin
77c3691cb2
Add an issue template for build problems
2022-01-14 01:46:21 +01:00
VZ
0fbefe9219
Add issue template for a bug report
...
Try creating a new issue template.
2022-01-14 01:43:36 +01:00
Vadim Zeitlin
8f1e277833
Ignore changes to GitHub issue templates in the CI builds
...
Unfortunately they will still run once when this commit is done, but at
least they won't run in the future when templates are modified.
2022-01-14 01:42:13 +01:00
Vadim Zeitlin
265881c79e
Revert "Explain that GitHub PRs are temporarily disabled"
...
This reverts commit 89e5eca17d
and
replaces links to wxTrac with the new ones.
2022-01-12 23:42:18 +01:00
Vadim Zeitlin
394842aa8f
Merge branch 'ci-stl'
...
Add STL builds to GitHub CI.
See https://github.com/wxWidgets/wxWidgets/pull/2529
2022-01-11 23:50:42 +01:00
Vadim Zeitlin
89e5eca17d
Explain that GitHub PRs are temporarily disabled
...
This will need to be reverted when the issues migration is complete, but
wxTrac link will have to be removed/replaced.
2022-01-11 19:01:29 +01:00
Vadim Zeitlin
11b8276cc4
Disable container overflow detection in Mac STL ASAN CI build
...
This seems to result in a false positive in BitmapComboBoxTestCase with
the following stack:
ERROR: AddressSanitizer: container-overflow on address 0x00010d5331c0 at pc 0x00010743e1e8 bp 0x00016b6f8940 sp 0x00016b6f8938
WRITE of size 8 at 0x00010d5331c0 thread T0
#0 0x10743e1e4 in wxString::ConvertedBuffer<char>::ConvertedBuffer() string.h:3598
#1 0x10743ddbc in wxString::ConvertedBuffer<char>::ConvertedBuffer() string.h:3598
#2 0x10743f49c in wxString::wxString(wxString const&) string.h:1157
#3 0x1074324ac in wxString::wxString(wxString const&) string.h:1157
#4 0x10747a4c4 in void std::__1::allocator<wxString>::construct<wxString, wxString const&>(wxString*, wxString const&) memory:916
#5 0x10747a3f8 in void std::__1::allocator_traits<std::__1::allocator<wxString> >::construct<wxString, wxString const&, void>(std::__1::allocator<wxString>&, wxString*, wxString const&) allocator_traits.h:288
#6 0x107479e2c in std::__1::vector<wxString, std::__1::allocator<wxString> >::__construct_at_end(unsigned long, wxString const&) vector:1063
#7 0x107479b3c in std::__1::vector<wxString, std::__1::allocator<wxString> >::insert(std::__1::__wrap_iter<wxString const*>, unsigned long, wxString const&) vector:1889
#8 0x10756085c in wxBaseArray<wxString, wxSortedArray_SortFunction<wxString> >::Insert(wxString, unsigned long, unsigned long) dynarray.h:181
#9 0x108028fbc in wxVListBoxComboPopup::Insert(wxString const&, int) odcombo.cpp:539
#10 0x108030180 in wxOwnerDrawnComboBox::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType) odcombo.cpp:1122
#11 0x10826d690 in wxBitmapComboBox::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType) bmpcboxg.cpp:169
#12 0x10485271c in wxItemContainer::InsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType) ctrlsub.h:160
#13 0x1048522a0 in wxItemContainer::InsertItems(wxArrayStringsAdapter const&, unsigned int) ctrlsub.h:165
#14 0x10483c08c in wxItemContainer::Insert(wxArrayString const&, unsigned int) ctrlsub.h:247
#15 0x10483dac8 in ItemContainerTestCase::Count() itemcontainertest.cpp:96
#16 0x104866e04 in BitmapComboBoxTestCase::runTest() bitmapcomboboxtest.cpp:50
...
0x00010d5331c0 is located 64 bytes inside of 160-byte region [0x00010d533180,0x00010d533220)
allocated by thread T0 here:
#0 0x105546714 in wrap__Znwm+0x74 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x4a714)
#1 0x10747ae10 in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) new:235
#2 0x10747ad6c in std::__1::__libcpp_allocate(unsigned long, unsigned long) new:261
#3 0x10747ace8 in std::__1::allocator<wxString>::allocate(unsigned long) memory:870
#4 0x10747ab88 in std::__1::allocator_traits<std::__1::allocator<wxString> >::allocate(std::__1::allocator<wxString>&, unsigned long) allocator_traits.h:260
#5 0x10747aac4 in std::__1::__split_buffer<wxString, std::__1::allocator<wxString>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<wxString>&) __split_buffer:314
#6 0x10747a110 in std::__1::__split_buffer<wxString, std::__1::allocator<wxString>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<wxString>&) __split_buffer:313
#7 0x107479c30 in std::__1::vector<wxString, std::__1::allocator<wxString> >::insert(std::__1::__wrap_iter<wxString const*>, unsigned long, wxString const&) vector:1904
#8 0x10756085c in wxBaseArray<wxString, wxSortedArray_SortFunction<wxString> >::Insert(wxString, unsigned long, unsigned long) dynarray.h:181
#9 0x108028fbc in wxVListBoxComboPopup::Insert(wxString const&, int) odcombo.cpp:539
#10 0x108030180 in wxOwnerDrawnComboBox::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType) odcombo.cpp:1122
#11 0x10826d690 in wxBitmapComboBox::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType) bmpcboxg.cpp:169
#12 0x1075590bc in wxItemContainer::DoAppendItems(wxArrayStringsAdapter const&, void**, wxClientDataType) ctrlsub.h:352
#13 0x10484c9e0 in wxItemContainer::AppendItems(wxArrayStringsAdapter const&, void**, wxClientDataType) ctrlsub.h:117
#14 0x10484c8d4 in wxItemContainer::AppendItems(wxArrayStringsAdapter const&) ctrlsub.h:122
#15 0x10483999c in wxItemContainer::Append(wxArrayString const&) ctrlsub.h:209
#16 0x10483ccfc in ItemContainerTestCase::Count() itemcontainertest.cpp:82
#17 0x104866e04 in BitmapComboBoxTestCase::runTest() bitmapcomboboxtest.cpp:50
...
2022-01-11 15:33:16 +01:00
Vadim Zeitlin
a3c89f38dc
Switching to using Debian Testing for CI MSW cross builds
...
Sid is currently broken and installing dependencies fails, so switch to
Testing at least temporarily.
2021-12-17 21:40:50 +01:00
Vadim Zeitlin
e2d13c2d94
Show build environment and compiler version for Mac CI builds
...
This is similar to 6e96c6dda0
(Add "Show build environment" step,
2021-10-27) done for the Unix CI builds.
2021-12-15 17:50:55 +01:00
Vadim Zeitlin
ddde0f1eea
Reenable cmake install step for Windows builds
...
Just skip using sudo under this OS, but still run "cmake install" as
this is required for the final test, checking the installation success,
to work.
2021-12-10 18:00:38 +01:00
Vadim Zeitlin
c39c119707
Try to force compiler choice to MSVC
...
Otherwise clang compiler is being chosen, even if MSVC should be
available.
2021-12-09 23:09:18 +01:00
Vadim Zeitlin
17e307ae67
Skip install step under MSW
...
This wouldn't work anyhow as "sudo" doesn't exist under this platform.
2021-12-09 20:23:44 +01:00
Vadim Zeitlin
25ede89983
Use bash for all build steps for MSW CMake build
...
Otherwise references to the variables don't work as expected.
2021-12-09 20:22:48 +01:00
Be
4ab869543f
Add CMake build with MSVC to GitHub Action CI workflow
2021-12-09 20:09:21 +01:00
Vadim Zeitlin
cd385cf22d
Trivial change to test rebuilding using ccache
...
Change the workflow file to trigger rebuild without affecting the other
builds.
2021-11-09 13:29:57 +01:00
Vadim Zeitlin
6e96c6dda0
Add "Show build environment" step
...
Show version of compiler and ccache being used.
2021-10-27 23:32:16 +02:00
Vadim Zeitlin
9320aeb28b
Enable use of ccache for Unix CI builds
...
This should speed up build step for the common case when not too many
files have to be recompiled.
2021-10-27 22:58:19 +02:00
Vadim Zeitlin
fbb2ec85ef
Install 32-bit version of xvfb in 32-bit wxMSW cross-build
...
libgl1:i386 conflicts with 64-bit version of xvfb in the latest Sid, so
try using 32-bit version of the latter.
2021-10-16 16:44:44 +02:00
Scott Talbert
769e24bae0
cmake: build all samples under Linux CI
2021-10-11 13:03:15 -04:00
Vadim Zeitlin
168c6d3bd5
Use STL in one of Mac builds too
...
Check that Mac-specific code compiles and works correctly in STL builds
too.
2021-09-23 18:14:27 +02:00
Vadim Zeitlin
4713c19b37
Use STL in one of MSVS CI builds
...
Do (almost) the same thing done in appveyor.yml to change wxUSE_STL
value in setup.h.
2021-09-23 16:48:35 +02:00
Artur Wieczorek
b0331f58b5
Don't run CI builds on Ubuntu 16 not supported any longer
...
Support for Ubuntu 16.04 ended on September 20, 2021.
See: https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021/
See https://github.com/wxWidgets/wxWidgets/pull/2531
2021-09-23 16:29:10 +02:00
Artur Wieczorek
5ecf2e05a5
Execute ChoiceTestCase on wxMac
2021-09-22 22:19:45 +02:00
Artur Wieczorek
ce9f8d065a
Execute ListBox-related tests under wxMac
2021-09-22 22:19:45 +02:00