Skip to content

Commit 251c363

Browse files
committed
ci: update to the mono CMakefile
Signed-off-by: Stéphane Cerveau <scerveau@igalia.com>
1 parent 903caab commit 251c363

File tree

1 file changed

+3
-93
lines changed

1 file changed

+3
-93
lines changed

.github/workflows/main.yml

+3-93
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
REPO_NAME: vk_video_samples
1414

1515
jobs:
16-
vk_video_decoder-linux:
16+
vk_video_samples-linux:
1717
strategy:
1818
matrix:
1919
platform: [linux-x86_64, linux-x86]
@@ -56,103 +56,14 @@ jobs:
5656
- name: Build
5757
shell: bash
5858
run: |
59-
cd vk_video_decoder
6059
bash ./update_external_sources.sh
6160
mkdir BUILD
6261
cd BUILD
6362
cmake -DCMAKE_BUILD_TYPE=Debug ..
6463
make -j
6564
66-
vk_video_encoder-linux:
67-
strategy:
68-
matrix:
69-
platform: [linux-x86_64, linux-x86]
70-
runs-on: ubuntu-22.04
71-
72-
env:
73-
TERM: dumb
74-
75-
steps:
76-
- name: Checkout code
77-
uses: actions/checkout@v3
78-
79-
- name: Set environment variables
80-
run: |
81-
echo "DESTDIR=$REPO_NAME-release" >> $GITHUB_ENV
82-
83-
- name: Set i386 environment variables
84-
if: matrix.platform == 'linux-x86'
85-
run: |
86-
echo "CC=cc -m32" >> $GITHUB_ENV
87-
echo "CXX=c++ -m32" >> $GITHUB_ENV
88-
echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/" >> $GITHUB_ENV
89-
90-
- name: Install dependencies
91-
run: |
92-
sudo apt update
93-
sudo apt install --assume-yes --no-install-recommends valgrind python3-pip ninja-build
94-
sudo apt install cmake
95-
sudo apt install libx11-dev libwayland-dev
96-
97-
- name: Install i386 dependencies
98-
if: matrix.platform == 'linux-x86'
99-
run: |
100-
sudo dpkg --add-architecture i386
101-
sudo apt update
102-
sudo apt install gcc-multilib g++-multilib libc6-dbg:i386
103-
# hack to avoid that zlib x64 gets picked up
104-
sudo apt remove --assume-yes zlib1g-dev
105-
106-
- name: Build
107-
shell: bash
108-
run: |
109-
bash ./vk_video_decoder/update_external_sources.sh
110-
cd vk_video_encoder
111-
mkdir BUILD
112-
cd BUILD
113-
cmake -DCMAKE_BUILD_TYPE=Debug ..
114-
make -j
115-
116-
vk_video_decoder-win:
117-
strategy:
118-
matrix:
119-
platform: [windows-x64, windows-x86]
120-
runs-on: windows-latest
121-
122-
steps:
123-
- name: Set up X86 MSVC environment
124-
if: matrix.platform == 'windows-x86'
125-
uses: ilammy/msvc-dev-cmd@v1
126-
with:
127-
arch: "x86"
128-
- name: Checkout code
129-
uses: actions/checkout@v3
130-
131-
- name: Set environment variables
132-
run: echo "DESTDIR=$Env:REPO_NAME-release" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
133-
134-
- name: Install dependencies
135-
run: |
136-
choco install --yes zip
137-
138-
- name: Install python
139-
uses: actions/setup-python@v4
140-
with:
141-
python-version: "3.10"
142-
143-
- name: Install cmake
144-
run: choco install cmake
145-
146-
- name: Build
147-
run: |
148-
./vk_video_decoder/update_external_sources.bat
149-
cd vk_video_decoder
150-
mkdir BUILD
151-
cd BUILD
152-
cmake -DCMAKE_BUILD_TYPE=Debug ..
153-
make -j
15465
155-
vk_video_encoder-win:
66+
vk_video_samples-win:
15667
strategy:
15768
matrix:
15869
platform: [windows-x64, windows-x86]
@@ -184,8 +95,7 @@ jobs:
18495

18596
- name: Build
18697
run: |
187-
./vk_video_decoder/update_external_sources.bat
188-
cd vk_video_encoder
98+
./update_external_sources.bat
18999
mkdir BUILD
190100
cd BUILD
191101
cmake -DCMAKE_BUILD_TYPE=Debug ..

0 commit comments

Comments
 (0)