@@ -138,106 +138,108 @@ jobs:
138138 runs-on : windows-2022
139139 strategy :
140140 matrix :
141- autoUpdate : [true, false ]
141+ autoUpdate : [true]
142142 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 (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\v142\MergeModules\Microsoft_VC142_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-{{matrix.os}}-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-{{matrix.os}}.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 : YUViewSetup.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
143+ - name : Debug path
144+ run : dir C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\
145+ # - uses: actions/checkout@v4
146+ # with:
147+ # submodules: true
148+ # - uses: ilammy/msvc-dev-cmd@v1
149+ # - run: git fetch --prune --unshallow
150+ # - name: Install Qt base
151+ # run: |
152+ # cd ../../
153+ # mkdir -p YUViewQt/YUViewQt
154+ # cd YUViewQt/YUViewQt
155+ # curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/QtBase-6.9.0/qtBase-6-9-0-windows-2022.zip -o Qt.zip
156+ # 7z x Qt.zip
157+ # echo "${{ github.workspace }}\..\..\YUViewQt\YUViewQt\Qt\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
158+ # - name: Install libde265
159+ # run: |
160+ # curl -L https://github.com/ChristianFeldmann/libde265/releases/download/v1.1/libde265.dll -o libde265.dll
161+ # curl -L https://raw.githubusercontent.com/ChristianFeldmann/libde265/master/COPYING -o libde265License.txt
162+ # - name: Install jom
163+ # run: |
164+ # choco install jom
165+ # - name: Install openSSL
166+ # run: |
167+ # mkdir openSSL
168+ # cd openSSL
169+ # curl -L https://github.com/ChristianFeldmann/YUViewQt/releases/download/openSSL3.5.0/openSSL-3-5-0-windows-2022.zip -o openSSL.zip
170+ # 7z x openSSL.zip
171+ # cd ..
172+ # - name: Activate auto update
173+ # if: matrix.autoUpdate == true
174+ # run: sed -i -- "s/#define UPDATE_FEATURE_ENABLE 0/#define UPDATE_FEATURE_ENABLE 1/g" YUViewLib/src/common/Typedef.h
175+ # shell: bash
176+ # - name: Build
177+ # run: |
178+ # echo "Creating Build dir and entering it"
179+ # mkdir build
180+ # cd build
181+ # echo "Qmake Version:"
182+ # d:\a\YUViewQt\YUViewQt\Qt\bin\qmake --version
183+ # echo "Executing qmake..."
184+ # d:\a\YUViewQt\YUViewQt\Qt\bin\qmake CONFIG+=UNITTESTS ..
185+ # echo "Executing jom:"
186+ # jom
187+ # - name: Run Unittests
188+ # run: D:\a\YUView\YUView\build\YUViewUnitTest\YUViewUnitTest
189+ # - name: WindeployQT
190+ # run: |
191+ # mkdir deploy
192+ # cd deploy
193+ # cp ../build/YUViewApp/YUView.exe .
194+ # d:\a\YUViewQt\YUViewQt\Qt\bin\windeployqt.exe --release --no-compiler-runtime YUView.exe
195+ # cp ../openSSL/*.dll .
196+ # mkdir decoder
197+ # cp ..\libde265.dll decoder
198+ # cp ..\libde265License.txt decoder
199+ # cp ../LICENSE.GPL3 .
200+ # cd ..
201+ # python deployment/versioning.py -d deploy -o deploy/versioninfo.txt
202+ # mkdir artifacts
203+ # 7z a artifacts/YUView-Win.zip ./deploy/*
204+ # - name: Wix Windows
205+ # if: matrix.autoUpdate == true
206+ # run: |
207+ # cd ${{ github.workspace }}/deployment/wix
208+ # cp 'C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\v142\MergeModules\Microsoft_VC142_CRT_x64.msm' .
209+ # & "C:\Program Files (x86)\WiX Toolset v3.14\bin\heat.exe" dir ../../deploy -gg -dr APPLICATIONFOLDER -srd -sreg -cg YUViewComponents -out harvestedDirectory.wxs
210+ # & "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
211+ # & "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
212+ # & "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
213+ # cd ${{ github.workspace }}
214+ # cp deployment/wix/bin/Release/YUViewSetup.msi ./
215+ # - name: Upload Artifact (Autoupdate)
216+ # if: matrix.autoUpdate == true
217+ # uses: actions/upload-artifact@v4
218+ # with:
219+ # name: YUView-{{matrix.os}}-autoupdate.zip
220+ # path: artifacts
221+ # - name: Upload Artifact (Autoupdate disabled)
222+ # if: matrix.autoUpdate == false
223+ # uses: actions/upload-artifact@v4
224+ # with:
225+ # name: YUView-{{matrix.os}}.zip
226+ # path: artifacts
227+ # - name: Upload Windows installer Artifact
228+ # if: matrix.autoUpdate == true
229+ # uses: actions/upload-artifact@v4
230+ # with:
231+ # name: YUViewSetup.msi
232+ # path: ./YUViewSetup.msi
233+ # - name: Release Zip
234+ # uses: softprops/action-gh-release@v1
235+ # if: startsWith(github.ref, 'refs/tags/')
236+ # with:
237+ # files: artifacts/YUView-Win.zip
238+ # - name: Release Installer
239+ # uses: softprops/action-gh-release@v1
240+ # if: startsWith(github.ref, 'refs/tags/') && matrix.autoUpdate == true
241+ # with:
242+ # files: YUViewSetup.msi
241243
242244 # How to upload files to the release:
243245 # https://github.com/Blacksmoke16/oq/pull/47/files#diff-082c28d748ad2e3eecc5508d740d9417R9-R29
0 commit comments