Commit Graph

307 Commits

Author SHA1 Message Date
Martin Pulec
dae8192c4d CI Linux: build own SDL2
This fixed crashing on Wayland (only - Weston without XWayland) in both U20.04 and
U22.04.
2022-10-24 15:06:23 +02:00
Martin Pulec
0a894d9f4b CI Linux FFmpeg: disable SDL2
we don't need it as FFmpeg dep and it adds needless dependency
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
Martin Pulec
b15e0086a9 CI Ubnutu: APT - write deb-src separate file
Write deb-src to a separate file in /etc/apt/sources.list.d/. Someone is
rewriting /etc/apt/sources.list. See failed run:

  https://github.com/CESNET/UltraGrid/actions/runs/3286915245
2022-10-20 13:09:22 +02:00
Martin Pulec
8c1ed707d5 CI: remove non-free AJA handling
NTV2 SDK is now pulled from GitHub in .github/scripts/macOS/prepare.sh
2022-10-07 15:19:15 +02:00
Martin Pulec
39d62f9f3a CI AJA: factor out common handling 2022-09-27 15:52:32 +02:00
Martin Pulec
0a07ab837f CI: fixed fetching of AJA assets
pass also GITHUB_TOKEN when fetching AJA GH assets
2022-09-27 15:52:32 +02:00
Martin Pulec
0f38366079 CI AJA: use GH provided GITHUB_TOKEN
Pass our GITHUB_TOKEN when querying AJA releases in attempt to avoid
reacing API rate limit. See also the failed build:

https://github.com/CESNET/UltraGrid/actions/runs/3113151876
2022-09-23 16:21:03 +02:00
Martin Piatka
9bde4a99fc CI: ffmpeg: Apply patches in sorted order 2022-09-22 15:53:30 +02:00
Martin Piatka
686b4083e6 CI: arm/ffmpeg: Order unordered patches
Also rename fix flags from .diff to .patch so that it gets actually
applied.
2022-09-22 15:53:30 +02:00
Martin Piatka
256ce75e16 CI: arm: Apply ffmpeg patches in alphabetical order 2022-09-22 15:53:29 +02:00
Martin Pulec
9389cf7bd4 CI AJA: use common JSON handling
Use common JSON handling functions because it offer error checking.

+ use -sS for curl
2022-09-22 10:51:29 +02:00
Martin Pulec
87ec574f81 .github/scripts/json-common.sh: token optional
GitHub token is not always required so make it optional.

+ rewrite (use small letters for local vars, curl silent /-sS/)
2022-09-22 10:21:13 +02:00
Martin Pulec
0a5a38d218 CI ARM: shallow clone of FFmpeg
Saves time and space.

+ added the branch to the clone command (otherwise it won't be known in
  the shallow clone)
2022-09-21 15:23:17 +02:00
Martin Piatka
2450e8dea9 CI: update rpi ffmpeg patch
Patch is from https://github.com/RPi-Distro/ffmpeg

The newest patch for 4.3.4 doesn't compile on buster because of
undefined V4L2_CID_CODEC_STATELESS_BASE
2022-09-21 14:03:05 +02:00
Martin Pulec
031e5be285 CI: use GH api instead of taking it from HTML
similarly to previous commit
2022-09-20 12:11:19 +02:00
Martin Pulec
e351f182cd CI: use SpoutLibrary build 2022-09-15 14:27:22 +02:00
Martin Pulec
912cb8ed38 C/C++ CI: added Arch check
- check appimage with Arch and --capabilities - this catches segfault
  with incompatible jack implementation in bundle and system
  (pipewire-jack package needed)
- use empty directory for container build (instead of ".") also for
  Ubuntu (would not needlessly copy contents of current directory to
  Docker daemon)
2022-09-14 11:50:08 +02:00
Martin Pulec
5ec962d939 CI Windows/prepare_msys.sh: replace MSYS_REPO
MSYS2 itself uses MINGW_PACKAGE_PREFIX if run with appropriate scripts
so make this similarly.
2022-09-12 16:44:04 +02:00
Martin Pulec
71ec5f5cf7 Revert "CI: removed SDL2_mixer"
This reverts commit d547bcb9e3.

Now used by MIDI audio capture.
2022-09-12 16:44:04 +02:00
Martin Pulec
cb789020d6 shellchecked all remaining CI scripts 2022-09-08 14:43:42 +02:00
Martin Pulec
f0e3022b70 shellchecked .github/scripts/Linux/**/*sh 2022-09-08 13:54:43 +02:00
Martin Pulec
585fb29313 CI: patch Cineform 2022-09-08 12:07:56 +02:00
Martin Pulec
8bb3026f27 shellchecked .github/scripts/*/prepare.sh 2022-09-08 11:13:47 +02:00
Martin Pulec
ae7610e19b CI: Cineform build - factor common code
generalize compilation for Linux+mac
2022-09-08 11:13:44 +02:00
Martin Pulec
59871a6850 CI [Linux]: removed custom SDL2 repo
See #168 - according to the testing, the fix may already have been
applied upstream (in Ubuntu distro SDL2 package, although minor version
has not changed).
2022-09-06 16:25:30 +02:00
Martin Pulec
a2f5a78c09 CI: replaced removed PPA for SDL2
The previous seem that hasn't been used in recent builds anyways
(perhaps packages were removed from the repository earlier?).
2022-08-26 15:49:55 +02:00
Martin Pulec
d547bcb9e3 CI: removed SDL2_mixer
no longer used by testcard2
2022-08-26 15:49:36 +02:00
Martin Pulec
90a1bbe7af .github/scripts/upload-asset.sh fixed 2022-08-23 15:15:21 +02:00
Martin Pulec
51f3f5efdb .github/scripts/create_release.sh fixed 2022-08-23 14:48:16 +02:00
Martin Pulec
cc83029b0f shellchecked .github/*sh 2022-08-23 13:19:08 +02:00
Martin Pulec
ace75e51e8 CI: install-common-deps.sh: nproc mac compat
+ use nproc for cineform compilation
2022-08-23 13:19:03 +02:00
Martin Pulec
9489a18b98 .github/scripts/upload-ndi-build.sh removed
no longer used (NDI is always built)
2022-08-23 10:48:12 +02:00
Martin Pulec
ab32827c11 CI: shellchecked .github/scripts/{json,create}* 2022-08-23 10:48:12 +02:00
Martin Pulec
404a4de21e NEWS remove new line after heading + description
Described NEWS/FIXES.md text processing for release JSON description
body.
2022-08-23 10:48:12 +02:00
Martin Pulec
17c4603e7a CI: allow '\_' and \*' in NEWS and FIXES.md
properly escape them for valid JSON
2022-08-23 10:48:12 +02:00
Martin Pulec
996ad31d71 create_[con_]release.sh: handle HTTP status != 200 2022-08-23 10:48:11 +02:00
Martin Pulec
ce6bdd79cf CI: json-common.sh - safety check + escape 2022-08-23 10:48:11 +02:00
Martin Pulec
d68df46923 create_release.sh: enable debug output 2022-08-23 10:48:11 +02:00
Martin Pulec
67c83f0172 create_continuous_release.sh: other fixes
- fetch really 'continuous' release, not $TAG (perhaps c&p error from
  create_release.sh)
- create tag only if not exists
2022-08-23 10:48:11 +02:00
Martin Pulec
284d60dcdf create_continuous_release.sh: force fetch
It looks like git on GH tags without signatures first and thus the
consequent fetch in create_continuous_release.sh fails because it
fetches signed tag (although it is the same object).

See also:
https://github.com/MartinPulec/UltraGrid/actions/runs/2902280934

+ enable debugging in the script (`-x`)
2022-08-23 10:48:11 +02:00
Martin Pulec
720009aea4 GitHub CI Linux: disable GL suppoort for GPUJPEG
This support is currnetly unused by UltraGrid and adds libOpenGL.so.o
GPUJPEG dependency:

https://cmake.org/cmake/help/v3.22/module/FindOpenGL.html#linux-specific

Since we don't need this, it is best to disable GPUJPEG OpenGL support.
2022-08-10 08:14:08 +02:00
Martin Pulec
49fe808693 GitHub CI Linux: CUDA_HOST_COMPILER no longer needed 2022-08-10 08:14:07 +02:00
Martin Pulec
d38410e13d GitHub CI Linux GPUJPEG: revert to cmake
This reverts 2c90fee5 that is hopefully no longer needed.

+ use function for the build instead of a nasty one-liner
+ parallel build
2022-08-10 08:14:07 +02:00
Martin Piatka
168dee12ce CI: Update svt-av1 repo URL 2022-08-05 15:52:06 +02:00
Martin Pulec
356b622889 testcard: get rid of SDL_mixer
SDL_mixer has some nasty dependency on JACK so remove it altogether
since it is perhaps seldom used (the MIDI playback may be added later
eg. as a standalone audio capture).

(see GH discussion #241)
2022-07-27 09:05:56 +02:00
Martin Pulec
d0224f6b2e .github/scripts/macOS/sign.sh: used shellcheck
Incorporated shellcheck complains.
2022-07-12 11:53:48 +02:00
Martin Pulec
c7a251f327 CI sign.sh [mac]: return 0 on pull request
On pull request, the repository secrets are not available.
2022-07-12 11:32:57 +02:00
Martin Pulec
053e469c8b Revert "GitHub CI C/C++ Lin. FFmpeg: disable SVT HEVC/VP9"
This reverts commit 9fbd18b53d.
2022-06-16 11:34:21 +02:00
Martin Pulec
4089f2e3ef CI: AJA cleanup 2022-06-14 14:12:57 +02:00