Commit Graph

6 Commits

Author SHA1 Message Date
Jessica Clarke
ddd0a8bffe .github: Attempt to un-break Clang 9 action
GitHub removed Clang 9 from the 20.04 image[1], breaking this build.
Thus, manually add the specific versioned packages we need for the
Ubuntu jobs to ensure they're installed. Note that we don't do the same
for macOS, as Homebrew does not allow multiple llvm@N to co-exist,
giving an error if you attempt to install a second one. In practice we
don't actually use the compiler field here for anything other than the
build name, it's only the cross-bindir that matters, so when it
eventually moves to 12 the name will get confusing but the job will
still work.

MFC after:	immediately

[1] 15a610677b

(cherry picked from commit e5f5b6a75c)
2021-05-29 04:38:07 +01:00
Alex Richardson
b24f2d6d34 Enable GitHub actions CI for stable/13 as well
All cross-building patches have been merged to stable/13 so it should
also build fine on macOS+Linux.

Reviewed By:	uqs
MFC after:	immediately
Differential Revision: https://reviews.freebsd.org/D29831

(cherry picked from commit 6bc0bb2936)
2021-04-20 09:52:11 +01:00
Ulrich Spörlein
40903394bf GitHub actions: unbreak macOS build
Error: llvm 11.0.0 is already installed

Also make the linking failure non-fatal:

Error: The `brew link` step did not complete successfully
2021-01-08 15:36:38 +01:00
Ulrich Spörlein
9c43bd646e Github actions: s/master/main/ for the CI workflow 2021-01-03 00:08:38 +01:00
Ulrich Spörlein
accf961151 GH Actions: Use pre-installed clang packages
Also fix the run by setting up the environment in non-deprecated way.

Always run with --debug to understand better what sort of stuff is happening in
the background. Also split out the bmake bootstrap stage (takes about 31s on
ubuntu, but 1m14 on macOS?)

Drops the dependency on coreutils (realpath, nproc) and thus (?) fixes macOS to
be just as fast (4 logical cores vs 2 physical cores before, go figure.)

Reviewed by:		arichardson
2020-11-26 14:42:16 +00:00
Alex Richardson
1e266857ad Add github CI for testing cross-building from Linux and macOS
This builds the kernel-toolchain target and an amd64 GENERIC kernel on
Ubuntu 18.04, 20.04 and the latest macOS to ensure that new changes
don't regress building on non-FreeBSD hosts.

Reviewed By:	emaste, lwhsu
Differential Revision: https://reviews.freebsd.org/D26512
2020-09-23 12:54:37 +00:00