Commit graph

95 commits

Author SHA1 Message Date
asonix
ca7c6f7ba0 Prepare 0.5.17 release 2025-04-21 13:56:16 -05:00
asonix
e9ab28a962 Move integration tests into script 2025-03-29 21:10:01 -05:00
asonix
73afada7e7 Fix string trimming for bash 2025-03-29 17:33:51 -05:00
asonix
5e670710eb Test each suite individually 2025-03-29 17:26:48 -05:00
asonix
85ac9ec5aa Use same rustflags for all tests 2025-03-29 17:09:45 -05:00
asonix
65fd38682b Split tests into individual steps 2025-03-29 17:08:42 -05:00
asonix
d7e83c5d6e Enable integration tests in publish workflow 2025-03-29 16:58:13 -05:00
asonix
b81eb306c0 Use install-imagemagick action 2025-03-29 15:16:18 -05:00
asonix
2f24476ae3 re-enable cargo cache. link problem was OOM 2025-03-29 14:55:27 -05:00
asonix
c60b0f727a No cache in tests 2025-03-29 12:24:25 -05:00
asonix
a71812930e Add tests with system deps
These new tests each spin up their own instance of pict-rs. This allows
for configuring pict-rs differently depending on the test that needs to
be run. It also opens the possibility of writing tests with object
storage and postgres requirements in the future.

So far there's pretty minimal test coverage. Just uploading,
downloading, deleting, and checking validation errors for images and
animations. In the future, tests need to be added for videos, many
variations of the process endpoint, and the admin endpoints.

The new tests are locked behind a configuration option (not a feature)
called `system_deps`. They can be enabled by passing

`RUSTFLAGS='--cfg system_deps'`

This is to prevent tests from running and failing in environments where
the exiftool, imagemagick, and ffmpeg binaries are not present.

This builds imagemagick from source for a few reasons
1. binaries for imagemagick 7 are not available for debian 12
2. the imagemagick appimage does not support avif files
3. the imagemagick appimage is limited to x86_64
2025-03-28 10:30:03 -05:00
asonix
47b3fb84b6 Update rust version & MSRV to 1.82 2024-11-12 13:46:30 -06:00
asonix
4b0e6cf4db Don't run deny in release flow. it's not working in CI 2024-06-26 14:25:19 -05:00
asonix
147f9406c8 Prepare v0.5.17-pre.1 2024-06-24 17:10:13 -05:00
asonix
3664d9f94d Require deny run for publish 2024-06-21 14:29:49 -05:00
asonix
0dbdbd2d49 Add cargo-deny run 2024-06-21 14:27:11 -05:00
asonix
2ead3e00e2 Revert "Zigbuild with tokio-unstable"
This reverts commit b7f508207f.
2024-03-11 13:29:52 -05:00
asonix
b7f508207f Zigbuild with tokio-unstable 2024-03-11 13:20:12 -05:00
asonix
719626de07 Add release document for 0.5.7, add blurhash endpoint to readme 2024-03-03 11:08:47 -06:00
asonix
4d2c642c79 Only check on branches 2024-02-12 13:47:51 -06:00
asonix
5c551221b4 Auto latest behavior 2024-02-08 17:58:19 -06:00
asonix
fd5ce91c32 Remove rust action, use rust cache action 2024-02-08 15:32:55 -06:00
asonix
e814cd6c20 Use custom base image for CI 2024-02-08 14:50:27 -06:00
asonix
e7e13a41f0 Spread arguments 2024-02-08 10:21:39 -06:00
asonix
ba5d891146 Remove quotes from vars 2024-02-08 10:14:54 -06:00
asonix
883261fde8 Add debug echo 2024-02-08 10:13:59 -06:00
asonix
b227d0e4e4 Install jq (again) 2024-02-08 09:52:57 -06:00
asonix
e40d7ef483 Split final buildx into multiple steps 2024-02-08 09:35:59 -06:00
asonix
290e6f6207 Shell bash 2024-02-08 00:05:34 -06:00
asonix
79af633980 different escapes 2024-02-07 23:58:52 -06:00
asonix
21c78403df bash -c 2024-02-07 23:37:45 -06:00
asonix
a022d6e35d Use fully qualified name for many actions 2024-02-07 23:14:08 -06:00
asonix
4a4b0665e3 fix postbuild 2x combo 2024-02-07 22:57:28 -06:00
asonix
6fad68d888 fix postbuild 2024-02-07 22:41:09 -06:00
asonix
17d5adc3a8 Add ID to docker build step 2024-02-07 22:25:01 -06:00
asonix
c4dd830708 Fix context path 2024-02-07 22:03:21 -06:00
asonix
4974ab84ad Add docker-host variable 2024-02-07 21:52:59 -06:00
asonix
eff8a88381 Try manually installing docker 2024-02-07 21:50:04 -06:00
asonix
b65354f2c4 Install lsb-release 2024-02-07 21:46:25 -06:00
asonix
69aeb3f753 Install sudo 2024-02-07 21:42:15 -06:00
asonix
3c4f87ed2e Setup docker first 2024-02-07 21:40:35 -06:00
asonix
4ef6737dab Try to install docker via an action 2024-02-07 21:39:01 -06:00
asonix
0ca95b9368 Try to fix prepare platform 2024-02-07 21:31:25 -06:00
asonix
798e628ae2 Remove fail-fast 2024-02-07 21:16:35 -06:00
asonix
b4433b9f2c Hmm 2024-02-07 21:14:56 -06:00
asonix
678cbba120 Matrix pls 2024-02-07 21:12:24 -06:00
asonix
e601de6767 Don't = target 2024-02-07 21:02:50 -06:00
asonix
3348b45d5f Namespace binaries, copy pict-rs binary to proper folder 2024-02-07 21:01:24 -06:00
asonix
94c307c869 Downgrade artifact actions, add dockerfile 2024-02-07 20:57:34 -06:00
asonix
7afc38527b Fix publish crate 2024-02-07 20:30:07 -06:00