From a7130b4396f6a7bc6c30b9492eb73e3584988409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 28 Oct 2022 15:46:13 +0300 Subject: [PATCH] github: Set a ulimit timeout when cross-building ffmpeg --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce7170f..ec7ee5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -309,6 +309,11 @@ jobs: sudo apt-get update && sudo apt-get install nasm mkdir ffmpeg-build cd ffmpeg-build + # Set a limit of 3 minutes per process/object file; with unproven + # versions from latest git, the compiler may occasionally hang. + # Make sure we exit in a reasonable time instead of waiting for + # the whole github actions timeout of 6h before exiting. + ulimit -t 180 ../ffmpeg/configure --arch=${{matrix.arch}} --target-os=mingw32 --cross-prefix=${{matrix.arch}}-w64-mingw32- --enable-gpl make -j$(nproc)