8 Commits

Author SHA1 Message Date
Robin Jarry
840ca53b59 macos: test build on go 1.23
Add go 1.23 to the build matrix. Remove redundant install of gnupg.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2025-02-05 12:03:40 +01:00
Bence Ferdinandy
5d56a6fc75 go: bump minimal version to 1.21 and handle deprecations
Go 1.18 is already EOL. go-maildir v0.5.0 requires go 1.20 at least.
Since go 1.20 is also EOL, bump the minimum required go version to the
first still supported version which is 1.21.

Go 1.20 deprecated Seed and Read in math/rand. Update the code
accordingly.

Changelog-deprecated: Support for go 1.20 and older.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2024-08-20 11:52:25 +02:00
Robin Jarry
d582ac682c github: fix macos build
setup-go@v2 does not work anymore. Let's not run on deprecated stuff.
Update action versions.

Also, homebrew base prefix has changed and is not in the default clang
search path anymore. Update CGO_*FLAGS accordingly.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2024-05-09 22:49:22 +02:00
Robin Jarry
bd29700e70 ci: fix build and test on macos
Even if macos has GNU make, the gmake command is not available.

Fixes: 73bf7241e6 ("lint,validate: fix for openbsd")
Signed-off-by: Robin Jarry <robin@jarry.cc>
2023-12-15 09:58:29 +01:00
Robin Jarry
73bf7241e6 lint,validate: fix for openbsd
- Remove GNU specific stuff (ln -v, mktemp --tempdir, grep --color)
- Remove GCC specific flags in sendemail-validate (-Warith-conversion)
- Add -std=c99 and -Wpedantic and fix the reported warnings.
- Explicitly call gmake everywhere.
- Run our custom analyzer standalone. Golangci lint plugins are not
  supported on OpenBSD. Indirect dependency to golang.org/x/mod is
  required somehow...

Reported-by: Johannes Thyssen Tishman <johannes@thyssentishman.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Johannes Thyssen Tishman <johannes@thyssentishman.com>
2023-12-14 23:05:07 +01:00
Robin Jarry
ba892d7769 builds: add gnupg in preparation of gpg integration
This is required for future gpg unit tests to run.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-04-14 21:51:09 +02:00
Robin Jarry
45a7d29b06 builds: test with notmuch
This is never tested. Let's check that it compiles at least.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-04-14 21:28:56 +02:00
Robin Jarry
59ecf93b9b github: add workflow to test on macos
We have some users on macOS. builds.sr.ht does not support proprietary
build images and will never do.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-01-25 09:35:08 +01:00