Commit Graph

208 Commits

Author SHA1 Message Date
Martin Pulec
4977da090b CI macos: re-enable DELTACAST
The file name has changed and --enable-deltacast was used just if the
download succeeded (which didn't).

Fixes the commit 98d4969b (2024-05-24) that disabled deltacast, because
the archive was not downloaded due to wrong name.
2024-10-24 16:14:34 +02:00
Martin Pulec
e1c747e966 CI mac: use macos-13
macOS 12 is no longer supported and as Homebrew has a policy, that it
compiles packages from sources on unsupported macOSes, it is needed to
switch to newer macOS to keep reasonable build times.
2024-09-19 16:18:59 +02:00
Martin Piatka
2f601f5ccd CI Win: Dependencies for screen capture 2024-07-08 16:04:20 +02:00
Martin Pulec
b57680dd68 CI: suppress brew list output for uninstalled
the message: `Error: No such keg: /opt/homebrew/Cellar/asciidoctor`
is now print on stderr, which disturbs GitHub CI (complains about it in
action summary annotations; just a warning).
`
2024-06-25 15:08:29 +02:00
Martin Pulec
ce0ed361c8 CI NDI: use v6 2024-06-25 15:08:29 +02:00
Martin Pulec
bd91d16b27 CI: common live555 handling 2024-05-31 16:04:45 +02:00
Martin Pulec
0ed7d449bc CI: cache AJA build [Win]
Since we must now build the new libajantv2, which takes some 3 minutes,
cache the build in order not to increase the build time.

Also use libajantv2 path for the SDK instead of AJA (doesn't require
unneeded rename), which will be Windows specific.

Only do it in MSW, since the build is slowest. But it can be easily used
also for other platforms.
2024-05-31 16:04:45 +02:00
Martin Pulec
b1ea13a628 CI mac: install jq only if not installed
refer the commit d10a9d5c
2024-05-28 12:03:55 +02:00
Martin Pulec
f2ba6e81ba CI macOS: skip sign+notarize step if $apple_key_p12_b64 undef
\+ error from the notarize script if called

Previously (since commit 1c7c3ac1), the script silently exitted without
cigning and notarizing the app, which may harden debugging. Now the skip
is explicit and if the script is called anyways, it returns error.

enhances the commit 1c7c3ac1 (2024-03-22)
2024-03-25 09:01:13 +01:00
Martin Pulec
f5467237ae CI Linux: download rav1e build instead of building own
Building rav1e requires nasm 2.15 (if asm is not disabled) while U20
has just 2.14.02, so that the build in CI currently fails, anyways.

Pick sse4 for now but expect using avx2 version later, depending on
UG_ARCH value.

\+ populate PKG_CONFIG_PATH immediately
2024-03-20 14:16:08 +01:00
Martin Pulec
1cce11666e CI mac: do not handle VideoMasterHD manually
Use the installer and rely on dylibbundler v2 to deploy the framework
correctly.

Note: in the macOS/install_others.sh script, make sure that the env var
modification is global (== not just in the subshell) in order to be updated
by subsequent commands in the same script.
2024-02-12 11:57:48 +01:00
Martin Pulec
86b4c0696d CI mac: move signing key import to environment.sh
The signing key is actually needed in the ccpp.yml workflow earlier than
`prepare.sh` is run, namely in cache-macos-nonfree-sdks step.
2024-02-09 16:44:26 +01:00
Martin Pulec
ed57143615 CI: added mac arm64 build 2024-02-09 12:46:17 +01:00
Martin Pulec
dbe6fff795 CI mac: added arch string
to identify if the build is arm64 or x86_64
2024-02-09 12:46:03 +01:00
Martin Pulec
f54382d44e CI mac: use -msse4.2 only on x86_64 2024-02-09 12:45:49 +01:00
Martin Pulec
ba1f2038a5 CI: actions/cache: use main branch
see previous commit
2024-01-30 10:56:24 +01:00
Martin Pulec
9c1420ac6f CI: actions/upload-artifact skip version
fixing complains:
```
Node.js 16 actions are deprecated. Please update the
following actions to use Node.js 20: actions/cache@v3,
actions/upload-artifact@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

Use the main branch instead of hard-coded the version to eliminate
the needs to such small/technical fixes in future. Taken from:
<https://stackoverflow.com/questions/73256369/using-the-latest-version-of-a-github-action#73259281>
2024-01-30 10:33:51 +01:00
Martin Pulec
7393a244f8 CI: fixed checkout@v3 deprecation
"Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/checkout@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/."
2024-01-25 17:07:43 +01:00
Martin Pulec
f80943216f CI mac: if unable to umount dmg, try again
`hdiutil umount` occasionally fails with `hdiutil: create failed -
Resource busy`. Perhaps some macOS process is touching the content
of the DMG (there are some reports in different GH about
`XProtectBehaviorService` or something).

refer to GH-367
2024-01-05 10:33:53 +01:00
Martin Pulec
e92385abcc CI Win: cache CineForm build
This saves some 2.5 minute from the Windows runner run time.

There is also commented-out code to download the Release Asset directly
from CineForm GH. This unfortunatelly doesn't work right now (commented
in the file).
2023-11-16 16:26:10 +01:00
Martin Pulec
635c083e00 CI Windows: cache Spout2 build
Since we are now building Spout2 in CI, it takes some 1:30 minute to
build so cache it not to increase the build time when cached.
2023-11-06 13:28:18 +01:00
Martin Pulec
e4ae1eabf3 CI mac: switch to macOS 12 Monterey
Homebrew builds now dependencies from sources on unsupported macOSes
(which is 11 now), which makes it slow. Relevant snippet from brew output:
```
Warning: You are using macOS 11.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
```
2023-11-03 16:39:34 +01:00
Martin Pulec
85c8d7fd3e Revert "CI: fix Windows build upload workaround"
no longer needed

This reverts commit 4e43d566fd.
2023-10-23 09:10:47 +02:00
Martin Pulec
82d888e62a CI: fix macOS signing
Since 291c58781 (yesterday) the bundle is created dirctly inside the dir
root, not gui/QT/uv-qt.app (where it is now only the build GUI without
other things).
2023-07-04 10:13:48 +02:00
Martin Pulec
7da1be7911 mac CI: fixed distcheck
final bundle path has changed

+ [Makefile.am] the targets were not overriden
2023-07-03 11:14:05 +02:00
Martin Pulec
c2e6349238 C/C++ CI: rebuild on any data/ subdir change
previously only data/scripts/ were watched

most of the remaining files are deployed for bundle (eg. data/update.mac
in previous commit) so watch all
2023-05-15 12:27:58 +02:00
Martin Pulec
b8ce258d4d sdl_mixer: try to open from common path
Copy sounfont to known path for macOS and Windows CI builds (in Linux,
this is already handled with a environment var SDL_SOUNDFONTS). And also
use that location if there is any soundfont.
2023-04-28 10:15:11 +02:00
Martin Pulec
9eb376ee38 CI Linux: do not build own SDL2 anymore
SDL2 now obviously works on U20.04, because we are building there. It
doesn't work on U22.04, but neither the build with SDL 2.0.20 nor 2.26.2
does.

The problem seems actually to be the inclusion of Wayland libraries in
AppImage.
2023-04-04 12:49:46 +02:00
Martin Piatka
eb7406f06e CI/Linux: Migrate to Ubuntu 20.04 2023-04-04 10:46:16 +02:00
Martin Pulec
4f1c1e8999 CI Windows: use curl in bash instead of pwsh 2023-03-23 09:31:34 +01:00
Martin Pulec
4cd7301fae CI Windows: use yaml shell directive
Use MSYS2 shell for Windows runner by default. This makes the workflow
job somehow more natural and easier.

+ `command -v windeployqt-qt6 >/dev/null` was incorrectly in $()
2023-03-23 09:30:49 +01:00
Martin Pulec
c3660529ac CI: moved configure features to environment.sh
- the yaml file is less messed
- all platform features are put together without being spread across the
  respecive jobs in the yaml
- $FEATURES are now used also by Coverity CI
2023-03-20 16:54:15 +01:00
Martin Pulec
ece4f2d1ca CI Linux x86-64: ensure accels are compiled-in 2023-03-15 09:06:15 +01:00
Martin Pulec
f293d9708d configure: simplified sdl handling
+ do check only if needed
2023-03-14 13:21:21 +01:00
Martin Pulec
faaebc8e06 CI Linux: ensure that GUI doesn't fail in first 10 secs 2023-03-14 09:59:27 +01:00
Martin Pulec
449c03dfcd CI: added caca 2023-03-09 13:27:47 +01:00
Martin Pulec
350489d8e1 CI: require screen capture module
but require only X11 capture in Linux for now (Ubuntu 18.04 is difficult
to compile required PipeWire version).
2023-02-21 08:55:48 +01:00
Martin Pulec
4e43d566fd CI: fix Windows build upload workaround
Used msys/curl instead of clang64/mingw-w64-clang-x86_64-curl for the
upload.

For whatever reason, the other curl variant ceased to collaborate with
GitHub, see failed run (and subsequent ones):

    https://github.com/CESNET/UltraGrid/actions/runs/4223917061/jobs/7334218587

I didn't manage to reproduce it on a local Windows machine so there is
perhaps some hidden factor present.

This change is just a workaround and should be removed when not needed.
2023-02-20 16:58:00 +01:00
Martin Pulec
498605df74 macOS: replace altool with notarytool 2023-02-17 19:03:56 +01:00
Martin Piatka
25987ebc9f CI: Enable manual trigger
Useful for manually triggering a build from a specific branch
2023-01-18 14:29:16 +01:00
Martin Pulec
21cc7be8c7 CI Linux: enable Vulkan
enabled Vulkan build on U18.04 runner
2023-01-17 08:56:32 +01:00
Martin Pulec
76f713ca16 CI Win: improve potentially space-delim input read
Do not use the IFS magic to handle space-delimited libraries, use "while
read" instead. This should fix accidental fails as here:

   https://github.com/CESNET/UltraGrid/actions/runs/3477335229/jobs/5813393766
2022-11-16 14:03:51 +01:00
Martin Pulec
4cba76e800 CI Linux: moved the code around a bit
It seems like that changing arbitrary packages installed (dependencies
for SDL) cause some FFmpeg dependencies to be rebuild (libvpx, SVT-*).

So revert back to depending on whole .github/scripts/Linux/prepare.sh
but move building/installation of AJA, live555 etc. to separate file
to reduce cached FFmpeg rebuilds at least a bit.

+ removed chmod 777 /usr/local
2022-11-16 11:15:43 +01:00
Martin Pulec
868ddab9be CI Linux: cache built SDL 2022-11-16 11:13:27 +01:00
Martin Pulec
eb8049e90e CI: enable Vulkan for mac + require
except of U20.04 where it currently doesn't run
2022-11-09 09:09:20 +01:00
Martin Pulec
0b4bca9e7d CI: updated actions/upload-artifact to v3
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Interestingly, the warning was triggered by v2 of the artifact but not
v1 (arm-build.yml, not in ccpp.yml, where was even v1 used).
2022-11-08 16:49:37 +01:00
Martin Pulec
fc740f7e4d CI: use macos-11 for macOS runner
macos-latest is now macos-12 in current runs so build it on macOS
11 to support macOSes Big Sur that are still supported by Apple
2022-10-26 14:24:23 +02:00
Martin Pulec
603d5f8b6d CI: added Soxr 2022-10-26 09:20:49 +02:00
Martin Pulec
0b0fb18747 CI Linux: fixed FFmpeg dep path 2022-10-24 11:49:22 +02:00
Martin Pulec
8ff9156b53 CI Linux: moved FFmpeg deps install to sep file
The file with dependencies installation is a prerequisity for FFmpeg
rebuild so move it to a smaller file to reduce number of required FFmpeg
rebuilds if that file changes.

Install libopencv-core-dev instead of libopencv-dev because it
transitively (libopencv-highgui-dev) depend on libswscale-dev that is
going to be removed.
2022-10-21 14:45:18 +02:00