GitHub Actions: Update the docker alpine image used for tests

Also increase timeout to 300s.

Currently only the Linux runner is running the docker test,
and building on Linux is usually the fastest. Should not
affect the overall job time.

Change-Id: Ie7aa72da1ffac987ef732ad0fb8076d473d00185
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Cristian Adam
2022-07-14 12:03:49 +02:00
parent 4adf6c833d
commit 7b0664f4e4

View File

@@ -155,6 +155,12 @@ jobs:
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./toolchain.7z) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./toolchain.7z)
endif() endif()
# For tests update the docker image
find_program(docker_executable docker)
if (docker_executable)
execute_process(COMMAND ${docker_executable} pull alpine:latest COMMAND_ECHO STDOUT)
endif()
- name: Download Qt - name: Download Qt
id: qt id: qt
shell: cmake -P {0} shell: cmake -P {0}
@@ -617,7 +623,7 @@ jobs:
endif() endif()
execute_process( execute_process(
COMMAND ${ctest_launcher} ctest -j ${N} --timeout 60 --label-exclude exclude_from_precheck --exclude-regex tst_perfdata COMMAND ${ctest_launcher} ctest -j ${N} --timeout 300 --label-exclude exclude_from_precheck --exclude-regex tst_perfdata
WORKING_DIRECTORY build/build WORKING_DIRECTORY build/build
RESULT_VARIABLE result RESULT_VARIABLE result
OUTPUT_VARIABLE output OUTPUT_VARIABLE output