Skip to content

Commit 04aceae

Browse files
author
Christian Feldmann
committed
Try build again
1 parent b4c1b35 commit 04aceae

File tree

1 file changed

+97
-101
lines changed

1 file changed

+97
-101
lines changed

.github/workflows/Build.yml

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

246242
# How to upload files to the release:
247243
# https://github.com/Blacksmoke16/oq/pull/47/files#diff-082c28d748ad2e3eecc5508d740d9417R9-R29

0 commit comments

Comments
 (0)