summaryrefslogtreecommitdiff
path: root/.github/workflows/msys2.yml
AgeCommit message (Collapse)Author
2025-06-18Remove coverage measurement.Jussi Pakkanen
2025-06-18Update Windows version in CI.Jussi Pakkanen
Windows 2019 in GH Actions goes away on the 30th.
2025-05-20CI: always install llvm for MSYS2Christoph Reiter
Due to some recent package splits llvm is no longer installed when clang is installed and the meson test suite was depending on the transitive dependency. Instead explicitly install llvm in all cases.
2025-03-20ci: stop installing python2 for the msys2 jobs, it's goneChristoph Reiter
MSYS2 dropped Python 2 in https://github.com/msys2/MINGW-packages/pull/23713
2024-07-30ci: Update actions/upload-artifact to v4 to fix deprecationsNirbheek Chauhan
2024-07-30ci: Update to checkout@v4 to squelch node warningsNirbheek Chauhan
Keep using v3 for Bionic because of https://github.com/mesonbuild/meson/pull/13424
2024-04-28Install ObjFW on macOS, Fedora and MSYS2 CIJonathan Schleifer
2024-02-14workflows: Trigger on all test harness changesAndrew McNulty
The following workflows have been updated so that they are triggered when the any of the test harnesses are updated: macos, os-comp, msys2 Previously only changes to `run_unittests.py` caused these workflows to be executed.
2023-12-13do not trigger workflows on dev branchesCharles Brunet
2023-12-10unittests: migrate from jsonschema to fastjsonschemaEli Schwartz
The former has rust dependencies, which lead to max capping on Cygwin since there is no rust compiler there. But it turns out there are other disadvantages of jsonschema: - it involves installing 5 wheels, instead of just 1 - it is much slower To give some perspective to the latter issue, this is what it looks like when I test with jsonschema: ``` ===== 1 passed, 509 deselected in 3.07s ===== Total time: 3.341 seconds ``` And here's what it looks like when I test with fastjsonschema: ``` ===== 1 passed, 509 deselected, 1 warning in 0.28s ===== Total time: 0.550 seconds ``` I cannot think of a good reason to use the former. Although in order to work on old CI images, we'll support it as a fallback mechanism
2023-07-30Revert "CI: add potential workaround for python crashes in MSYS2"Christoph Reiter
This reverts commit e945f35cd72402d0d204ff10870e2a95c59b6192. With MSYS2 udpating to Python 3.11, this should no longer be needed. See https://github.com/msys2/MINGW-packages/issues/17415#issuecomment-1606085553
2023-07-06CI: gracefully handle jsonschema update requiring rust to buildEli Schwartz
This has issues on Windows with msys2/cygwin, where we need to build it ourselves since binary wheels aren't supported on PyPI. And we don't have a rust compiler available for either one -- we may not be *able* to do so for cygwin? For msys2, the solution is pretty easy, just rely on the official msys2 packages for jsonschema, which handle both it and its dependencies for us and don't require us to compile anything. Currently they still have an older jsonschema that doesn't use rust deps at all, but that's because the new jsonschema was released today. We'll automatically catch up at some point. For cygwin, there is no rust compiler in the cygwin repository, and jsonschema there is old as the hills. I do not know if there's a good answer here, but an adequate answer is to cap jsonschema at the version we were testing with yesterday.
2023-04-24ci: Don't error out CI if codecov upload failsNirbheek Chauhan
2023-04-21ci: Move to the codecov github actionNirbheek Chauhan
The pypi package was suddenly removed. Not the most confidence-inspiring deprecation/migration: https://about.codecov.io/blog/message-regarding-the-pypi-package/
2022-11-28github workflows: upgrade actions/upload-artifact to version 3Eli Schwartz
This is a no-op change from v2 to v3, but github complains that nodejs is outdated if you don't. It's not obvious why this required a major version bump... However, half of our uses are on v1, which has a decent fix: failure to upload artifacts constitutes a step failure.
2022-11-28github workflows: upgrade actions/checkout to version 3Eli Schwartz
This is a no-op change, but github complains that nodejs is outdated if you don't. It's not obvious why this required a major version bump...
2022-10-30ci: Fix usage of concurrency in branches other than masterL. E. Segovia
2022-10-07CI: add potential workaround for python crashes in MSYS2Christoph Reiter
There hasn't been any progress on this upstream lately, so try what we use in MSYS2 CI right now
2022-09-23CI: don't set BOOST_ROOT to an empty stringChristoph Reiter
This was initially added in eb76ba7031f053a3c1 to avoid picking it up from azure/gha images. Looks like it is no longer set for some time now though: https://github.com/actions/runner-images/pull/540 so should no longer be needed. The empty string makes some meson tests fail which expect a path. A recent msys2-runtime change now lets empty env vars through to child processes whereas before they would get filtered out, which is why this worked before.
2022-09-23Revert "CI: Add a temporary workaround for broken MSYS2 Python path ↵Christoph Reiter
separator behaviour" This reverts commit 3fd2459a748cc9eed4be73132b002400da81cb0a. The underlying issue has been fixed and deployed: https://github.com/msys2-contrib/cpython-mingw/pull/107
2022-09-22CI: Add a temporary workaround for broken MSYS2 Python path separator behaviourChristoph Reiter
"MSYSTEM= python ..." no longer works because of some changes in the MSYS2 runtime Until this is fixed in either MinGW Python or the MSYS2 runtime this should revert things to the previous behaviour to get the CI green again.
2022-06-24chore: Set permissions for GitHub actionsneilnaveen
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-04-12add pypy3 to msys2 CI runmattip
2021-12-06ci: install pytest-subtestsDylan Baker
Which lets pytest understand unittest.subtest
2021-09-04ci: Use GitHub concurrencyDaniel Mensinger
2021-07-26Split run_unittests.py fileXavier Claessens
2021-07-13Set MESON_CI_JOBNAME for all CI jobsJon Turney
Set MESON_CI_JOBNAME for all CI jobs which run project tests. (Note that ${{ github.job }} is the literal job.id used in the yaml, not any name given to the job with job.id.name, and so is the same for all matrix entries, and thus not suitable for our purposes there).
2021-06-22coverage: Enable coverage reportsDaniel Mensinger
2020-12-11ci: run msys2 on run_unittests.py changesDylan Baker
2020-11-23CI: install glib for the MSYS2 jobs to make pkgconf happyChristoph Reiter
Fixes a test when using pkgconf instead of pkg-config. The .pc file in the pkgconfig-gen test requires it and pkgconf seems be stricter here and fails to validate.
2020-11-23CI: fix a typo in the msys2 workflow trigger pathsChristoph Reiter
2020-11-10workflows: be more conservative about launching msysDylan Baker
we don't want to lanuch it if we're only modifying a different workflow template.
2020-11-04CI: install pytest pytest-xdist for msys2Christoph Reiter
2020-11-04CI: Port MSYS2 from azure-pipelines to github actionsChristoph Reiter
This uses the msys2/setup-msys2@v2 to set up MSYS2