GitHub Workflow: run apt update before installing dependencies

Change-Id: I5b9f7d980490209e43994af09c9e3266f13103bd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2020-01-20 16:48:38 +01:00
committed by Alessandro Portale
parent 4a971127ac
commit ad4040972b

View File

@@ -227,8 +227,15 @@ jobs:
run: | run: |
if ("${{ runner.os }}" STREQUAL "Linux") if ("${{ runner.os }}" STREQUAL "Linux")
execute_process( execute_process(
COMMAND sudo apt install libgl1-mesa-dev COMMAND sudo apt update
) )
execute_process(
COMMAND sudo apt install libgl1-mesa-dev
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Failed to install dependencies")
endif()
endif() endif()
- name: Download Googletest - name: Download Googletest