Commit Graph

63 Commits

Author SHA1 Message Date
Kleis Auke Wolthuizen
67c642e5ec
CI: various improvements (#3096)
* CI: upgrade macOS runner to version 12 (Monterey)

* CI: upgrade actions/checkout to v3

* CI: remove retry logic for apt

The Linux runners on GitHub Actions already retries up to 10 times,
see:
6c93c24107/images/linux/scripts/base/apt.sh (L11-L12)

* CI: remove redundant `DEBIAN_FRONTEND=noninteractive` env

The Linux runners on GitHub Actions already sets this env variable,
see:
6c93c24107/images/linux/scripts/installers/dpkg-config.sh (L10)

* CI: remove redundant `HOMEBREW_NO_AUTO_UPDATE=1` env

The macOS runners on GitHub Actions already sets this env variable,
see:
6c93c24107/images/macos/provision/configuration/environment/bashrc (L26)

* CI: prefer shorthand flag of apt-get `--fix-missing`

* CI: install libjxl on macOS runner

* Update test suite's README.md
2022-10-17 19:08:35 +01:00
John Cupitt
5afc4a2df5 Merge branch '8.13' 2022-09-05 09:59:25 +01:00
Kleis Auke Wolthuizen
867a09737c
CI: remove redundant glib-utils dependency (#3022)
The GLib utilities, which was split into its own `glib-utils`
formula has been merged back into `glib`, see:
https://github.com/Homebrew/homebrew-core/pull/108307

This reverts commit a846de017d.
2022-09-03 15:45:49 +01:00
Kleis Auke Wolthuizen
99f239b4a6
CI: remove redundant JOBS env (#2967)
ninja runs as many parallel jobs as there are available CPU cores
by default. So, there's no need to set this environment variable.
2022-07-30 19:22:42 +01:00
Kleis Auke Wolthuizen
a846de017d
CI: fix macOS build (#2938)
The GLib utilities, including `glib-mkenums`, is split into its own
`glib-utils` formula, see:
https://github.com/Homebrew/homebrew-core/pull/103916
2022-07-22 15:34:17 +01:00
Kleis Auke Wolthuizen
468c13693b
CI: upgrade runner to Ubuntu 22.04 (#2850)
* CI: upgrade runner to Ubuntu 22.04

- Compile with GCC 11 and Clang 14.
- Remove redundant PPAs.
- Use system provided Meson.
- Update LeakSanitizer suppressions.

* CI: ensure `VIPS_BLOCK_UNTRUSTED` is tested

`magicksave` cannot be used for testing when building with
`-Dmodules=enabled` (default), since that would require the
loadable modules to be installed first.
2022-06-12 12:24:30 +01:00
Daniel Löbl
b0f993eec8
cgifsave: avoid size issue (#2628)
* cgifsave: avoid size issue

avoid size issue by restoring the original transparency setting after quantization/dithering

* switch to per-frame alpha channel

* add option for lossy transparency

* switch lossy transparency off by default

* switch to g_malloc instead of g_malloc0

no need to 0 initialize at this point

* adapt to libvips coding conventions

* cgifsave: avoid size issue

avoid size issue by restoring the original transparency setting after quantization/dithering

* switch to per-frame alpha channel

* add option for lossy transparency

* switch lossy transparency off by default

* switch to g_malloc instead of g_malloc0

no need to 0 initialize at this point

* adapt to libvips coding conventions

* switch to official Homebrew sources for installing cgif

* bump required cgif version to v0.2.0
2022-02-28 16:19:13 +00:00
Kleis Auke Wolthuizen
3da7caee6c
LSan improvements and fixes (#2672)
* LSan: remove GLib suppression

* LSan: disable the fast unwinder to get full stacktraces

* Move ASan/UBSan fuzzer options to CI configuration

* LSan: remove EOLed python2.7 suppression

* LSan: remove libstdc++ suppression

* LSan: add libx265 to suppression file

* Try to reproduce small memleak

* Try a possible patch

* Skip test if `im_benchmark` is not available

* CI: upgrade Clang version to 13

* CI: correct job names

* Meson: increase the timeout for tests

* README.md: correct Meson invocation
2022-02-19 15:13:42 +00:00
John Cupitt
0388e54bd2 looks like meson must be installed with sudo for ci 2022-02-18 11:09:39 +00:00
John Cupitt
504cea50a5 check pip3 install on runner 2022-02-18 11:06:35 +00:00
John Cupitt
aef5f25167 in ci, don't install meson as root 2022-02-18 10:56:49 +00:00
John Cupitt
fea9d068c4 oop, forgot a sudo 2022-02-18 10:52:58 +00:00
John Cupitt
e14deaf5c6 disable introspection for CI build 2022-02-18 10:48:22 +00:00
John Cupitt
1be213052b install our own meson 2022-02-18 10:36:50 +00:00
John Cupitt
dab51ef92f display meson error logs 2022-02-18 10:22:07 +00:00
John Cupitt
f573dc47e3 ci fix 2022-02-18 10:05:04 +00:00
John Cupitt
aea262f6f6 try to move CI to meson 2022-02-18 10:01:13 +00:00
DavidKorczynski
9cd2bd1196
ci: add CIFuzz integration (#2559)
Signed-off-by: David Korczynski <david@adalogics.com>
2021-11-26 17:03:09 +00:00
Kleis Auke Wolthuizen
5414ddfa80
Minor improvements (#2556)
- Remove unused libgif-dev dependency from CI.
- Remove no longer relevant comment from testsuite.
- Use yes/no instead of boolean values in configure.ac.
2021-11-25 10:51:34 +00:00
John Cupitt
f352bcd191 Revert "switch macos CI to the new cgif formula"
This reverts commit 6cdb199646.
2021-11-19 18:13:23 +00:00
John Cupitt
6cdb199646 switch macos CI to the new cgif formula 2021-11-19 16:24:19 +00:00
John Cupitt
7ed9760ab9 enable debug for CI
It turns on quite a few useful asserts.
2021-11-19 14:57:34 +00:00
Kleis Auke Wolthuizen
5ab66e16e1
Fix UBSan errors (#1948)
* Ensure UBSan exits with a non-zero code on error

* Avoid misaligned member access in mosaic_fuzzer

* Add missing VIPS_CLIP in scRGB2sRGB/scRGB2BW

* Fix UBSan error in flatten

By using saturated casts for the int types (copied from vips_cast).

* CI: ensure fuzzer log is printed on error

* Avoid UB in heifload

* Revert flatten change

I could no longer reproduce this with clang 12 locally.

* Indentation fixes [skip ci]
2021-09-12 13:14:24 +01:00
Kleis Auke Wolthuizen
f2e5b7e9da
CI: resolve failures and various improvements (#2426)
* Simplify CI workflow

* CI: upgrade Ubuntu's Clang version to 12

* CI: upgrade macOS runner to version 11 (Big Sur)

* CI: temporarily disable the M1 runner

* CI: output test suite log upon failure

* CI: avoid brew update/upgrade steps

Since it may take a long time.

* CI: all jobs are supposed to succeed

* Fix test_descriptors.c failure after f8c2a36

Use a RANDOM image to create many crops from one source.
2021-09-07 11:14:45 +01:00
Lovell Fuller
1f5d6f6bc9
Add gifsave operation, depends on cgif and libimagequant (#2381) 2021-08-22 18:11:41 +01:00
John Cupitt
86466a9b9a put the sudo back
we probably need to change the user that macos-m1 runs as
2021-07-23 18:35:14 +01:00
John Cupitt
a0709f1bfc try install without sudo
since macos won't sudo as admin
2021-07-23 18:31:05 +01:00
John Cupitt
65ac1efc5f ci on m1 2021-07-23 14:04:45 +01:00
John Cupitt
b4560b6802 ci on m1 try 2021-07-23 14:01:45 +01:00
John Cupitt
635bf530b8 github actions for m1
another try
2021-07-23 14:00:28 +01:00
John Cupitt
ed697bd040 try to fix m1 build 2021-07-23 13:57:47 +01:00
John Cupitt
6ae68b9113 another try at a workflow for m1 2021-07-23 13:55:04 +01:00
John Cupitt
3b2003a31a attempt to add macos-m1 to CI
who knows, it might work
2021-07-23 12:58:34 +01:00
Kleis Auke Wolthuizen
8b01104c67 Add suppressions file for ThreadSanitizer 2021-05-03 13:21:45 +02:00
Lovell Fuller
23998b42ce CI: remove imagemagick as a dependency on macOS 2021-04-26 19:57:23 +01:00
Kleis Auke Wolthuizen
19e0d0cda1 Use imagemagick@6 on the macOS CI runner
To avoid a dependency on OpenMP.
2021-04-21 14:20:48 +02:00
Lovell Fuller
76fa92cd17 CI: ensure brew install as a single line, split into base vs formats 2021-04-18 21:25:34 +01:00
John Cupitt
cc04449dc5 remove extraeous "brew upgrade" 2021-04-12 20:40:00 +01:00
John Cupitt
b27a10c547 ask brew to update/upgrade
might help CI failures on macOS
2021-04-12 16:55:01 +01:00
John Cupitt
02163e7810 add openjpeg to CI 2021-03-20 13:00:42 +00:00
John Cupitt
acf010c2b7 update issue template
to steer people towards discussions
2021-02-17 13:39:45 +00:00
John Cupitt
6ab2af85e0 Update issue templates
Bugs only, now we're using "discussions"
2021-02-17 11:35:06 +00:00
Kleis Auke Wolthuizen
b93db2f2bb Avoid line-continuation backslash 2021-02-09 15:03:05 +01:00
Kleis Auke Wolthuizen
c49d0935ee Migrate from Travis CI to GitHub Actions 2021-02-08 21:12:27 +01:00
John Cupitt
1f4f975e7d make leak test exit with an error code
and run the libvips leak test in CI
2021-02-08 11:25:56 +00:00
Kleis Auke Wolthuizen
966317802e Ensure that other branches are also tested 2021-01-06 12:57:03 +01:00
Kleis Auke Wolthuizen
269b2e04d4 Test with libheif PPA on GitHub Actions
Since the one provided by Ubuntu 20.04 does not depend on aom.
2021-01-06 12:36:26 +01:00
John Cupitt
cbe9934e24 note libheif problems 2020-12-23 16:16:36 +00:00
John Cupitt
2e767a1a9a fix up github actions again
revert to the 20.04 libheif/libde265/etc. packages, since we get the test
suite to pass with them
2020-12-23 16:01:02 +00:00
John Cupitt
eed882c2a3 add libx265-dev as well
also needed by libheif.pc
2020-12-23 13:10:58 +00:00