33 Commits

Author SHA1 Message Date
Robert Edmonds
93a7227b00 build.yml: Try running multiarch builds on Debian bookworm 2025-01-26 14:12:24 -05:00
Robert Edmonds
fd07ca75c7 build.yml: Reformat 2025-01-18 21:05:33 -05:00
Robert Edmonds
1739815485 build.yml: Ubuntu: Drop 20.04 ahead of EOL 2025-01-18 20:51:46 -05:00
Robert Edmonds
0211069d55 build.yml: Ubuntu: Add 22.04, 24.04
- Add Ubuntu 22.04, 24.04 to the standard distcheck job.
- Add Ubuntu 22.04, 24.04 to the CMake job.
- Convert Valgrind job from Ubuntu 20.04 to 24.04.
- Convert coverage job from Ubuntu 20.04 to 24.04.
- Convert the run-on-arch-action job to run on Ubuntu 24.04 (base) and
Ubuntu 22.04 (the arch-specific actions; Ubuntu 24.04 not available).
- Add riscv64 to the list of architectures for the run-on-arch-action
job to run on.
2025-01-18 20:29:45 -05:00
Robert Edmonds
f902dccbbe fixup! build.yml: Disable building Windows with static libraries 2025-01-18 19:01:32 -05:00
Robert Edmonds
e1b26d0ab2 build.yml: Windows: protobuf: Drop -DABSL_PROPAGATE_CXX_STD=ON
This flag is not used by the protobuf build system:

    CMake Warning:
      Manually-specified variables were not used by the project:

        ABSL_PROPAGATE_CXX_STD
2025-01-18 18:35:36 -05:00
Robert Edmonds
030a424469 build.yml: Disable building Windows with static libraries
The static library builds on Windows are throwing obscure linker errors,
but the shared library builds are succeeding, so turn off the static
library builds for now.
2025-01-18 18:33:20 -05:00
Robert Edmonds
5a8cf4c20e build.yml: Use Ninja on Windows to speed up the build
Microsoft refuses to ship Ninja in the Windows image so a third-party
script is needed.
2025-01-18 18:07:31 -05:00
Robert Edmonds
ae987b4bb4 build.yml: Try setting -DCMAKE_MSVC_RUNTIME_LIBRARY for abseil, protobuf, protobuf-c builds on Windows 2025-01-18 17:45:30 -05:00
Robert Edmonds
26d0ce22c5 build.yml: Add back missing -S build-cmake when building protobuf-c on Windows 2025-01-18 17:16:08 -05:00
Robert Edmonds
31ad461e5c build.yml: Use actions/checkout@v4 to check out abseil and protobuf 2025-01-18 17:12:52 -05:00
Robert Edmonds
b32d4e3594 build.yml: The PowerShell line continuation character is the BACKTICK?! 2025-01-18 16:59:03 -05:00
Robert Edmonds
83f9df4e89 build.yml: Remove caching of Windows abseil/protobuf builds
Not sure why we want to cache and suppress the abseil/protobuf builds on
Windows since those are the things that break most often and we should
be alerted when they start breaking.
2025-01-18 16:43:23 -05:00
Robert Edmonds
2b253d124b build.yml: Set -Dprotobuf_BUILD_LIBUPB=OFF when building Cmake protobuf on Windows 2025-01-18 16:41:04 -05:00
Robert Edmonds
8415bbe39b build.yml: Reformat/rewrap Cmake invocations to make them readable/diffable 2025-01-18 16:37:49 -05:00
Robert Edmonds
9f2b84c37b build.yml: Fix MSVC protobuf build
It looks like this got missed in 4cb63c2044.
2025-01-18 16:06:48 -05:00
Robert Edmonds
df519ea1c6 build.yml: Update Windows dependencies (abseil, protobuf)
For MSVC:

- Updated abseil from 20230802.0 to 20240722.0.
- Updated protobuf from 24.3 to 29.3.
- Dropped utf8_range since this appears to have been incorporated into protobuf.
2025-01-18 15:10:09 -05:00
Robert Edmonds
e60331ea9c Merge branch 'next' into clean-cmake 2025-01-18 14:33:24 -05:00
Robert Edmonds
7bfd815efe build.yml: Build on more pull request activity types
The default is to build on pull request activity types opened, reopened,
and synchronize. Also build on activity types edited, ready_for_review,
and review_requested.
2025-01-12 17:44:07 -05:00
Robert Edmonds
639d44f0f8 build.yml: Run on the latest uraimo/run-on-arch-action@v2 2025-01-11 22:17:39 -05:00
Robert Edmonds
b33d42bdbf build.yml: Run periodic builds on Friday
That gives us the entire weekend to investigate build failures.
2025-01-11 22:17:10 -05:00
Robert Edmonds
2733398b35 Merge pull request #740 from AndrewQuijano/actions
Update actions
2025-01-11 18:22:55 -05:00
AndrewQuijano
1965754f4b Update actions 2024-10-20 11:23:13 -04:00
Clément Péron
4cb63c2044 ci: simplify cmake steps so we don't depends on generator
Simplify the CI steps command so in case we use another generator
than Make for example ninja or nmake we could also support it.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
2024-04-28 12:48:11 +02:00
Robert Edmonds
4b3e198d07 build.yml: Set "fail-fast: false" so we can tell which jobs are failing 2024-04-27 22:10:25 -04:00
Robert Edmonds
c8258be919 build.yml: Install libtool on OS X
This might fix the new CI build failure:

    → Run ./autogen.sh
    autoreconf: export WARNINGS=
    autoreconf: Entering directory '.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: creating directory build-aux
    autoreconf: configure.ac: not using Libtool
    autoreconf: configure.ac: not using Intltool
    autoreconf: configure.ac: not using Gtkdoc
    autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force
    autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoheader --force
    autoreconf: running: automake --add-missing --copy --force-missing
    configure.ac:14: installing 'build-aux/compile'
    configure.ac:13: installing 'build-aux/install-sh'
    configure.ac:13: installing 'build-aux/missing'
    Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
    Makefile.am:4:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
    Makefile.am:4:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
    Makefile.am:4:   If 'LT_INIT' is in 'configure.ac', make sure
    Makefile.am:4:   its definition is in aclocal's search path.
    Makefile.am: installing 'build-aux/depcomp'
    parallel-tests: installing 'build-aux/test-driver'
    autoreconf: error: automake failed with exit status: 1
2024-04-27 21:55:55 -04:00
Clément Péron
05f9112acd ci: build: always update cache to avoid out of date packages
APT cache could be out of date leading to a:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Fix this by always calling apt-get update before an apt-get install.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
2024-04-21 14:57:31 +02:00
Guybrush
5db0ca5a28 enforcing reviewers comments
Signed-off-by: Guybrush <miguel.barro@live.com>
2023-09-18 18:37:01 +02:00
Guybrush
aee40e9569 Setting default repos on msvc binary generator
Signed-off-by: Guybrush <miguel.barro@live.com>
2023-09-15 12:12:15 +02:00
Guybrush
6ad31f8d43 Dispatch workflow to generate binaries.
Led to some fixes in the CMake too.

Signed-off-by: Guybrush <miguel.barro@live.com>
2023-09-15 12:04:00 +02:00
Björn Ritzl
182953ead0 Use 7zip instead
7zip is installed on the GitHub runners: https://github.com/actions/runner-images/blob/main/images/win/Windows2019-Readme.md#tools
2022-10-01 22:00:23 +02:00
Ilya Lipnitskiy
50851e47bc Run GitHub actions also on pull requests
The push trigger didn't seem to work for PRs based in outside repos. So
limit the push trigger to master and next and enable a PR trigger.
2021-04-09 19:48:17 -07:00
Ilya Lipnitskiy
73a2ebefe6 Migrate from TravisCI to GitHub actions
We are now able to build against Mac and Windows.
But, mainly, see:
https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
https://docs.travis-ci.com/user/migrate/open-source-on-travis-ci-com/
2021-03-21 13:57:22 -07:00