|
7 | 7 | - created |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - # build-unix-native: |
11 | | - # runs-on: ${{ matrix.os }} |
12 | | - # strategy: |
13 | | - # matrix: |
14 | | - # os: [ubuntu-22.04, ubuntu-24.04] |
15 | | - # steps: |
16 | | - # - uses: actions/checkout@v4 |
17 | | - # with: |
18 | | - # submodules: true |
19 | | - # - run: git fetch --prune --unshallow |
20 | | - # - name: Install Linux packages |
21 | | - # run: | |
22 | | - # sudo apt-get update |
23 | | - # sudo apt-get install qt6-base-dev |
24 | | - # - name: Build |
25 | | - # run: | |
26 | | - # cd $GITHUB_WORKSPACE |
27 | | - # mkdir build |
28 | | - # cd build |
29 | | - # qmake6 CONFIG+=UNITTESTS .. |
30 | | - # make -j$(nproc) |
31 | | - # - name: Run Unittests |
32 | | - # run: $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest |
33 | | - # build-mac-native: |
34 | | - # runs-on: ${{ matrix.os }} |
35 | | - # strategy: |
36 | | - # matrix: |
37 | | - # os: [macos-13, macos-15] |
38 | | - # steps: |
39 | | - # - uses: actions/checkout@v4 |
40 | | - # with: |
41 | | - # submodules: true |
42 | | - # - run: git fetch --prune --unshallow |
43 | | - # - name: Install packages |
44 | | - # run: brew install qt |
45 | | - # - name: Build |
46 | | - # run: | |
47 | | - # cd $GITHUB_WORKSPACE |
48 | | - # mkdir build |
49 | | - # cd build |
50 | | - # qmake6 CONFIG+=UNITTESTS .. |
51 | | - # make -j $(sysctl -n hw.logicalcpu) |
52 | | - # - name: Run Unittests |
53 | | - # run: $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest |
| 10 | + build-unix-native: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + os: [ubuntu-22.04, ubuntu-24.04] |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + submodules: true |
| 19 | + - run: git fetch --prune --unshallow |
| 20 | + - name: Install Linux packages |
| 21 | + run: | |
| 22 | + sudo apt-get update |
| 23 | + sudo apt-get install qt6-base-dev |
| 24 | + - name: Build |
| 25 | + run: | |
| 26 | + cd $GITHUB_WORKSPACE |
| 27 | + mkdir build |
| 28 | + cd build |
| 29 | + qmake6 CONFIG+=UNITTESTS .. |
| 30 | + make -j$(nproc) |
| 31 | + - name: Run Unittests |
| 32 | + run: $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest |
| 33 | + build-mac-native: |
| 34 | + runs-on: ${{ matrix.os }} |
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + os: [macos-13, macos-15] |
| 38 | + steps: |
| 39 | + - uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + submodules: true |
| 42 | + - run: git fetch --prune --unshallow |
| 43 | + - name: Install packages |
| 44 | + run: brew install qt |
| 45 | + - name: Build |
| 46 | + run: | |
| 47 | + cd $GITHUB_WORKSPACE |
| 48 | + mkdir build |
| 49 | + cd build |
| 50 | + qmake6 CONFIG+=UNITTESTS .. |
| 51 | + make -j $(sysctl -n hw.logicalcpu) |
| 52 | + - name: Run Unittests |
| 53 | + run: $GITHUB_WORKSPACE/build/YUViewUnitTest/YUViewUnitTest |
54 | 54 | # build-linux-mac: |
55 | 55 | # runs-on: ${{ matrix.os }} |
56 | 56 | # strategy: |
@@ -134,110 +134,110 @@ jobs: |
134 | 134 | # if: startsWith(github.ref, 'refs/tags/') |
135 | 135 | # with: |
136 | 136 | # files: artifacts/${{steps.artifacts.outputs.outputZip}} |
137 | | - build-windows: |
138 | | - runs-on: windows-2022 |
139 | | - strategy: |
140 | | - matrix: |
141 | | - autoUpdate: [true, false] |
142 | | - steps: |
143 | | - - uses: actions/checkout@v4 |
144 | | - with: |
145 | | - submodules: true |
146 | | - - uses: ilammy/msvc-dev-cmd@v1 |
147 | | - - run: git fetch --prune --unshallow |
148 | | - - name: Install Qt base |
149 | | - run: | |
150 | | - cd ../../ |
151 | | - mkdir -p YUViewQt/YUViewQt |
152 | | - cd YUViewQt/YUViewQt |
153 | | - curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/QtBase-6.9.0/qtBase-6-9-0-windows-2022.zip -o Qt.zip |
154 | | - 7z x Qt.zip |
155 | | - echo "${{ github.workspace }}\..\..\YUViewQt\YUViewQt\Qt\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
156 | | - - name: Install libde265 |
157 | | - run: | |
158 | | - curl -L https://github.com/ChristianFeldmann/libde265/releases/download/v1.1/libde265.dll -o libde265.dll |
159 | | - curl -L https://raw.githubusercontent.com/ChristianFeldmann/libde265/master/COPYING -o libde265License.txt |
160 | | - - name: Install jom |
161 | | - run: | |
162 | | - choco install jom |
163 | | - - name: Install openSSL |
164 | | - run: | |
165 | | - mkdir openSSL |
166 | | - cd openSSL |
167 | | - curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/openSSL3.5.0/openSSL-3-5-0-windows-2022.zip -o openSSL.zip |
168 | | - 7z x openSSL.zip |
169 | | - cd .. |
170 | | - - name: Activate auto update |
171 | | - if: matrix.autoUpdate == true |
172 | | - run: sed -i -- "s/#define UPDATE_FEATURE_ENABLE 0/#define UPDATE_FEATURE_ENABLE 1/g" YUViewLib/src/common/Typedef.h |
173 | | - shell: bash |
174 | | - - name: Build |
175 | | - run: | |
176 | | - echo "Creating Build dir and entering it" |
177 | | - mkdir build |
178 | | - cd build |
179 | | - echo "Qmake Version:" |
180 | | - d:\a\YUViewQt\YUViewQt\Qt\bin\qmake --version |
181 | | - echo "Executing qmake..." |
182 | | - d:\a\YUViewQt\YUViewQt\Qt\bin\qmake CONFIG+=UNITTESTS .. |
183 | | - echo "Executing jom:" |
184 | | - jom |
185 | | - - name: Run Unittests |
186 | | - run: D:\a\YUView\YUView\build\YUViewUnitTest\YUViewUnitTest |
187 | | - - name: WindeployQT |
188 | | - run: | |
189 | | - mkdir deploy |
190 | | - cd deploy |
191 | | - cp ../build/YUViewApp/YUView.exe . |
192 | | - d:\a\YUViewQt\YUViewQt\Qt\bin\windeployqt.exe --release --no-compiler-runtime YUView.exe |
193 | | - cp ../openSSL/*.dll . |
194 | | - mkdir decoder |
195 | | - cp ..\libde265.dll decoder |
196 | | - cp ..\libde265License.txt decoder |
197 | | - cp ../LICENSE.GPL3 . |
198 | | - cd .. |
199 | | - python deployment/versioning.py -d deploy -o deploy/versioninfo.txt |
200 | | - mkdir artifacts |
201 | | - 7z a artifacts/YUView-Win.zip ./deploy/* |
202 | | - - name: Wix Windows |
203 | | - if: matrix.autoUpdate == true |
204 | | - run: | |
205 | | - cd ${{ github.workspace }}/deployment/wix |
206 | | - cp 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\v143\MergeModules\Microsoft_VC143_CRT_x64.msm' . |
207 | | - & "C:\Program Files (x86)\WiX Toolset v3.14\bin\heat.exe" dir ../../deploy -gg -dr APPLICATIONFOLDER -srd -sreg -cg YUViewComponents -out harvestedDirectory.wxs |
208 | | - & "C:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe" -dConfiguration=Release -dOutDir=bin/Release/ '-dTargetExt=.msi' '-dTargetFileName=YUViewSetup.msi' -dTargetName=YUViewSetup -out obj/Release/ -arch x64 -ext "C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUIExtension.dll" YUView.wxs |
209 | | - & "C:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe" -dConfiguration=Release -dOutDir=bin/Release/ '-dTargetExt=.msi' '-dTargetFileName=YUViewSetup.msi' -dTargetName=YUViewSetup -out obj/Release/ -arch x64 harvestedDirectory.wxs |
210 | | - & "C:\Program Files (x86)\WiX Toolset v3.14\bin\light.exe" -b ../../deploy -out bin/Release/YUViewSetup.msi -pdbout bin/Release/YUViewSetup.wixpdb -cultures:null -ext "C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUIExtension.dll" -contentsfile obj/Release/YUViewSetup.wixproj.BindContentsFileListnull.txt -outputsfile obj/Release/YUViewSetup.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj/Release/YUViewSetup.wixproj.BindBuiltOutputsFileListnull.txt obj/Release/YUView.wixobj obj/Release/harvestedDirectory.wixobj |
211 | | - cd ${{ github.workspace }} |
212 | | - cp deployment/wix/bin/Release/YUViewSetup.msi ./ |
213 | | - - name: Upload Artifact (Autoupdate) |
214 | | - if: matrix.autoUpdate == true |
215 | | - uses: actions/upload-artifact@v4 |
216 | | - with: |
217 | | - name: YUView-windows-2022-autoupdate.zip |
218 | | - path: artifacts |
219 | | - - name: Upload Artifact (Autoupdate disabled) |
220 | | - if: matrix.autoUpdate == false |
221 | | - uses: actions/upload-artifact@v4 |
222 | | - with: |
223 | | - name: YUView-windows-2022.zip |
224 | | - path: artifacts |
225 | | - - name: Upload Windows installer Artifact |
226 | | - if: matrix.autoUpdate == true |
227 | | - uses: actions/upload-artifact@v4 |
228 | | - with: |
229 | | - name: YYUView-windows-2022.msi |
230 | | - path: ./YUViewSetup.msi |
231 | | - - name: Release Zip |
232 | | - uses: softprops/action-gh-release@v1 |
233 | | - if: startsWith(github.ref, 'refs/tags/') |
234 | | - with: |
235 | | - files: artifacts/YUView-Win.zip |
236 | | - - name: Release Installer |
237 | | - uses: softprops/action-gh-release@v1 |
238 | | - if: startsWith(github.ref, 'refs/tags/') && matrix.autoUpdate == true |
239 | | - with: |
240 | | - files: YUViewSetup.msi |
| 137 | + # build-windows: |
| 138 | + # runs-on: windows-2022 |
| 139 | + # strategy: |
| 140 | + # matrix: |
| 141 | + # autoUpdate: [true, false] |
| 142 | + # steps: |
| 143 | + # - uses: actions/checkout@v4 |
| 144 | + # with: |
| 145 | + # submodules: true |
| 146 | + # - uses: ilammy/msvc-dev-cmd@v1 |
| 147 | + # - run: git fetch --prune --unshallow |
| 148 | + # - name: Install Qt base |
| 149 | + # run: | |
| 150 | + # cd ../../ |
| 151 | + # mkdir -p YUViewQt/YUViewQt |
| 152 | + # cd YUViewQt/YUViewQt |
| 153 | + # curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/QtBase-6.9.0/qtBase-6-9-0-windows-2022.zip -o Qt.zip |
| 154 | + # 7z x Qt.zip |
| 155 | + # echo "${{ github.workspace }}\..\..\YUViewQt\YUViewQt\Qt\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 156 | + # - name: Install libde265 |
| 157 | + # run: | |
| 158 | + # curl -L https://github.com/ChristianFeldmann/libde265/releases/download/v1.1/libde265.dll -o libde265.dll |
| 159 | + # curl -L https://raw.githubusercontent.com/ChristianFeldmann/libde265/master/COPYING -o libde265License.txt |
| 160 | + # - name: Install jom |
| 161 | + # run: | |
| 162 | + # choco install jom |
| 163 | + # - name: Install openSSL |
| 164 | + # run: | |
| 165 | + # mkdir openSSL |
| 166 | + # cd openSSL |
| 167 | + # curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/openSSL3.5.0/openSSL-3-5-0-windows-2022.zip -o openSSL.zip |
| 168 | + # 7z x openSSL.zip |
| 169 | + # cd .. |
| 170 | + # - name: Activate auto update |
| 171 | + # if: matrix.autoUpdate == true |
| 172 | + # run: sed -i -- "s/#define UPDATE_FEATURE_ENABLE 0/#define UPDATE_FEATURE_ENABLE 1/g" YUViewLib/src/common/Typedef.h |
| 173 | + # shell: bash |
| 174 | + # - name: Build |
| 175 | + # run: | |
| 176 | + # echo "Creating Build dir and entering it" |
| 177 | + # mkdir build |
| 178 | + # cd build |
| 179 | + # echo "Qmake Version:" |
| 180 | + # d:\a\YUViewQt\YUViewQt\Qt\bin\qmake --version |
| 181 | + # echo "Executing qmake..." |
| 182 | + # d:\a\YUViewQt\YUViewQt\Qt\bin\qmake CONFIG+=UNITTESTS .. |
| 183 | + # echo "Executing jom:" |
| 184 | + # jom |
| 185 | + # - name: Run Unittests |
| 186 | + # run: D:\a\YUView\YUView\build\YUViewUnitTest\YUViewUnitTest |
| 187 | + # - name: WindeployQT |
| 188 | + # run: | |
| 189 | + # mkdir deploy |
| 190 | + # cd deploy |
| 191 | + # cp ../build/YUViewApp/YUView.exe . |
| 192 | + # d:\a\YUViewQt\YUViewQt\Qt\bin\windeployqt.exe --release --no-compiler-runtime YUView.exe |
| 193 | + # cp ../openSSL/*.dll . |
| 194 | + # mkdir decoder |
| 195 | + # cp ..\libde265.dll decoder |
| 196 | + # cp ..\libde265License.txt decoder |
| 197 | + # cp ../LICENSE.GPL3 . |
| 198 | + # cd .. |
| 199 | + # python deployment/versioning.py -d deploy -o deploy/versioninfo.txt |
| 200 | + # mkdir artifacts |
| 201 | + # 7z a artifacts/YUView-Win.zip ./deploy/* |
| 202 | + # - name: Wix Windows |
| 203 | + # if: matrix.autoUpdate == true |
| 204 | + # run: | |
| 205 | + # cd ${{ github.workspace }}/deployment/wix |
| 206 | + # cp 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\v143\MergeModules\Microsoft_VC143_CRT_x64.msm' . |
| 207 | + # & "C:\Program Files (x86)\WiX Toolset v3.14\bin\heat.exe" dir ../../deploy -gg -dr APPLICATIONFOLDER -srd -sreg -cg YUViewComponents -out harvestedDirectory.wxs |
| 208 | + # & "C:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe" -dConfiguration=Release -dOutDir=bin/Release/ '-dTargetExt=.msi' '-dTargetFileName=YUViewSetup.msi' -dTargetName=YUViewSetup -out obj/Release/ -arch x64 -ext "C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUIExtension.dll" YUView.wxs |
| 209 | + # & "C:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe" -dConfiguration=Release -dOutDir=bin/Release/ '-dTargetExt=.msi' '-dTargetFileName=YUViewSetup.msi' -dTargetName=YUViewSetup -out obj/Release/ -arch x64 harvestedDirectory.wxs |
| 210 | + # & "C:\Program Files (x86)\WiX Toolset v3.14\bin\light.exe" -b ../../deploy -out bin/Release/YUViewSetup.msi -pdbout bin/Release/YUViewSetup.wixpdb -cultures:null -ext "C:\Program Files (x86)\WiX Toolset v3.14\bin\WixUIExtension.dll" -contentsfile obj/Release/YUViewSetup.wixproj.BindContentsFileListnull.txt -outputsfile obj/Release/YUViewSetup.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj/Release/YUViewSetup.wixproj.BindBuiltOutputsFileListnull.txt obj/Release/YUView.wixobj obj/Release/harvestedDirectory.wixobj |
| 211 | + # cd ${{ github.workspace }} |
| 212 | + # cp deployment/wix/bin/Release/YUViewSetup.msi ./ |
| 213 | + # - name: Upload Artifact (Autoupdate) |
| 214 | + # if: matrix.autoUpdate == true |
| 215 | + # uses: actions/upload-artifact@v4 |
| 216 | + # with: |
| 217 | + # name: YUView-windows-2022-autoupdate.zip |
| 218 | + # path: artifacts |
| 219 | + # - name: Upload Artifact (Autoupdate disabled) |
| 220 | + # if: matrix.autoUpdate == false |
| 221 | + # uses: actions/upload-artifact@v4 |
| 222 | + # with: |
| 223 | + # name: YUView-windows-2022.zip |
| 224 | + # path: artifacts |
| 225 | + # - name: Upload Windows installer Artifact |
| 226 | + # if: matrix.autoUpdate == true |
| 227 | + # uses: actions/upload-artifact@v4 |
| 228 | + # with: |
| 229 | + # name: YYUView-windows-2022.msi |
| 230 | + # path: ./YUViewSetup.msi |
| 231 | + # - name: Release Zip |
| 232 | + # uses: softprops/action-gh-release@v1 |
| 233 | + # if: startsWith(github.ref, 'refs/tags/') |
| 234 | + # with: |
| 235 | + # files: artifacts/YUView-Win.zip |
| 236 | + # - name: Release Installer |
| 237 | + # uses: softprops/action-gh-release@v1 |
| 238 | + # if: startsWith(github.ref, 'refs/tags/') && matrix.autoUpdate == true |
| 239 | + # with: |
| 240 | + # files: YUViewSetup.msi |
241 | 241 |
|
242 | 242 | # How to upload files to the release: |
243 | 243 | # https://github.com/Blacksmoke16/oq/pull/47/files#diff-082c28d748ad2e3eecc5508d740d9417R9-R29 |
|
0 commit comments