Skip to content

Commit 5a9455c

Browse files
committed
install deps before checking out repo in CI jobs
1 parent 095bf1e commit 5a9455c

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/cmake.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,39 @@ jobs:
2222
runs-on: [linux, bullseye]
2323

2424
steps:
25-
- uses: actions/checkout@v3
26-
with:
27-
submodules: 'recursive'
28-
29-
- name: Install dependencies
30-
run: |
31-
sudo apt-get install -y \
32-
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
33-
ttf-mscorefonts-installer fontconfig libsystemd-dev libinput-dev libudev-dev \
34-
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get install -y \
28+
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
29+
ttf-mscorefonts-installer fontconfig libsystemd-dev libinput-dev libudev-dev \
30+
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev
31+
32+
- uses: actions/checkout@v3
33+
with:
34+
submodules: 'recursive'
3535

36-
- name: Configure CMake
37-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
38-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
39-
run: |
40-
cmake \
41-
-B ${{github.workspace}}/build \
42-
-DBUILD_OMXPLAYER_VIDEO_PLAYER_PLUGIN=On \
43-
-DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=On \
44-
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
45-
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
46-
-DENABLE_TESTS=On \
47-
-GNinja
36+
- name: Configure CMake
37+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
38+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
39+
run: |
40+
cmake \
41+
-B ${{github.workspace}}/build \
42+
-DBUILD_OMXPLAYER_VIDEO_PLAYER_PLUGIN=On \
43+
-DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=On \
44+
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
45+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
46+
-DENABLE_TESTS=On \
47+
-GNinja
4848
49-
- name: Build
50-
# Build your program with the given configuration
51-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
49+
- name: Build
50+
# Build your program with the given configuration
51+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
5252

53-
- name: Test
54-
working-directory: ${{github.workspace}}/build
55-
# Execute tests defined by the CMake configuration.
56-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
57-
run: ctest -C ${{env.BUILD_TYPE}}
53+
- name: Test
54+
working-directory: ${{github.workspace}}/build
55+
# Execute tests defined by the CMake configuration.
56+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
57+
run: ctest -C ${{env.BUILD_TYPE}}
5858

5959
build-buster:
6060
name: build (debian buster, x64)
@@ -64,17 +64,17 @@ jobs:
6464
env:
6565
DEBIAN_FRONTEND: noninteractive
6666
steps:
67-
- uses: actions/checkout@v3
68-
with:
69-
submodules: 'recursive'
70-
7167
- name: Install dependencies
7268
run: |
7369
apt-get update && apt-get install -y \
7470
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
7571
fonts-liberation fontconfig libsystemd-dev libinput-dev libudev-dev \
7672
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev
7773
74+
- uses: actions/checkout@v3
75+
with:
76+
submodules: 'recursive'
77+
7878
- name: Configure CMake
7979
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
8080
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type

0 commit comments

Comments
 (0)