1313 matrix :
1414 os : [ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm]
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@v6
1717 with :
1818 submodules : true
1919 - run : git fetch --prune --unshallow
@@ -30,13 +30,15 @@ jobs:
3030 make -j$(nproc)
3131 - name : Run Unittests
3232 run : $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest
33+ env :
34+ QT_QPA_PLATFORM : ' offscreen'
3335 build-mac-native :
3436 runs-on : ${{ matrix.os }}
3537 strategy :
3638 matrix :
3739 os : [macos-15, macos-15-intel]
3840 steps :
39- - uses : actions/checkout@v4
41+ - uses : actions/checkout@v6
4042 with :
4143 submodules : true
4244 - run : git fetch --prune --unshallow
@@ -51,13 +53,15 @@ jobs:
5153 make -j $(sysctl -n hw.logicalcpu)
5254 - name : Run Unittests
5355 run : $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest
56+ env :
57+ QT_QPA_PLATFORM : ' offscreen'
5458 build-linux-mac :
5559 runs-on : ${{ matrix.os }}
5660 strategy :
5761 matrix :
5862 os : [ubuntu-22.04, macos-15]
5963 steps :
60- - uses : actions/checkout@v4
64+ - uses : actions/checkout@v6
6165 with :
6266 submodules : true
6367 - run : git fetch --prune --unshallow
@@ -105,6 +109,8 @@ jobs:
105109 make -j 4
106110 - name : Run Unittests
107111 run : $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest
112+ env :
113+ QT_QPA_PLATFORM : ' offscreen'
108114 - name : Build App (Mac)
109115 if : runner.os == 'macOS'
110116 run : |
@@ -125,7 +131,7 @@ jobs:
125131 mkdir $GITHUB_WORKSPACE/artifacts
126132 cp YUView.AppImage $GITHUB_WORKSPACE/artifacts/
127133 - name : Upload Artifact
128- uses : actions/upload-artifact@v4
134+ uses : actions/upload-artifact@v7
129135 with :
130136 name : ${{steps.artifacts.outputs.outputZip}}
131137 path : artifacts
@@ -140,7 +146,7 @@ jobs:
140146 matrix :
141147 autoUpdate : [true, false]
142148 steps :
143- - uses : actions/checkout@v4
149+ - uses : actions/checkout@v6
144150 with :
145151 submodules : true
146152 - uses : ilammy/msvc-dev-cmd@v1
@@ -153,6 +159,8 @@ jobs:
153159 curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/QtBase-6.9.0/qtBase-6-9-0-windows-2022.zip -o Qt.zip
154160 7z x Qt.zip
155161 echo "${{ github.workspace }}\..\..\YUViewQt\YUViewQt\Qt\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
162+ - name : Test qmake
163+ run : qmake --version
156164 - name : Install libde265
157165 run : |
158166 curl -L https://github.com/ChristianFeldmann/libde265/releases/download/v1.1/libde265.dll -o libde265.dll
@@ -176,20 +184,20 @@ jobs:
176184 echo "Creating Build dir and entering it"
177185 mkdir build
178186 cd build
179- echo "Qmake Version:"
180- d:\a\YUViewQt\YUViewQt\Qt\bin\qmake --version
181187 echo "Executing qmake..."
182- d:\a\YUViewQt\YUViewQt\Qt\bin\ qmake CONFIG+=UNITTESTS ..
188+ qmake CONFIG+=UNITTESTS ..
183189 echo "Executing jom:"
184190 jom
185191 - name : Run Unittests
186- run : D:\a\YUView\YUView\build\YUViewUnitTest\YUViewUnitTest
192+ run : ${{ github.workspace }}\build\YUViewUnitTest\YUViewUnitTest
193+ env :
194+ QT_QPA_PLATFORM : ' offscreen'
187195 - name : WindeployQT
188196 run : |
189197 mkdir deploy
190198 cd deploy
191199 cp ../build/YUViewApp/YUView.exe .
192- d:\a\YUViewQt\YUViewQt\Qt\bin\ windeployqt.exe --release --no-compiler-runtime YUView.exe
200+ windeployqt --release --no-compiler-runtime YUView.exe
193201 cp ../openSSL/*.dll .
194202 mkdir decoder
195203 cp ..\libde265.dll decoder
@@ -212,19 +220,19 @@ jobs:
212220 cp deployment/wix/bin/Release/YUViewSetup.msi ./
213221 - name : Upload Artifact (Autoupdate)
214222 if : matrix.autoUpdate == true
215- uses : actions/upload-artifact@v4
223+ uses : actions/upload-artifact@v7
216224 with :
217225 name : YUView-windows-2022-autoupdate.zip
218226 path : artifacts
219227 - name : Upload Artifact (Autoupdate disabled)
220228 if : matrix.autoUpdate == false
221- uses : actions/upload-artifact@v4
229+ uses : actions/upload-artifact@v7
222230 with :
223231 name : YUView-windows-2022.zip
224232 path : artifacts
225233 - name : Upload Windows installer Artifact
226234 if : matrix.autoUpdate == true
227- uses : actions/upload-artifact@v4
235+ uses : actions/upload-artifact@v7
228236 with :
229237 name : YYUView-windows-2022.msi
230238 path : ./YUViewSetup.msi
0 commit comments