|
28 | 28 | - run: git fetch --prune --unshallow --tags
|
29 | 29 |
|
30 | 30 | - name: Preapre build
|
31 |
| - run: | |
32 |
| - echo "Create datetime" |
33 |
| - $current_date=$(Get-Date -Format 'yyyyMMdd') |
34 |
| - "current_date=$current_date" >> $env:GITHUB_ENV |
35 |
| - |
36 |
| - echo "Create git hash" |
37 |
| - $git_hash=$(git -C . rev-parse --short HEAD) |
38 |
| - "git_hash=$git_hash" >> $env:GITHUB_ENV |
39 |
| - |
40 |
| - echo "Create version" |
41 |
| - $file_version="$($current_date)_$($git_hash)" |
42 |
| - "file_version=$file_version" >> $env:GITHUB_ENV |
43 |
| - |
| 31 | + run: | |
44 | 32 | echo "Create a build directory"
|
45 | 33 | md build
|
46 | 34 | cd build
|
|
59 | 47 | run: |
|
60 | 48 | cd build/release
|
61 | 49 | qmake ../..
|
62 |
| - mingw32-make |
63 |
| - |
| 50 | + mingw32-make -j4 |
| 51 | +
|
| 52 | + - name: Create installer |
| 53 | + run: | |
| 54 | + Write-Host "*** Create new bin folder ***" -ForegroundColor Red |
| 55 | + New-Item -ItemType directory -Path installer |
| 56 | + |
| 57 | + Write-Host "*** Copy non QT DLLs from welle.io-win-libs repository ***" -ForegroundColor Red |
| 58 | + Copy-Item ..\welle.io-win-libs\x64\*.dll installer -recurse |
| 59 | + |
| 60 | + Write-Host "*** Copy welle-io binary files ***" -ForegroundColor Red |
| 61 | + Copy-Item build\release\src\welle-gui\welle-io.exe installer |
| 62 | + |
| 63 | + # Deploy QT and related plugins |
| 64 | + Write-Host "*** Deploy QT and related plugins ***" -ForegroundColor Red |
| 65 | + & windeployqt installer\welle-io.exe --qmldir src\welle-gui\QML\ --no-translations |
| 66 | +
|
| 67 | + echo "Create filename" |
| 68 | + $current_date=$(Get-Date -Format 'yyyyMMdd') |
| 69 | + $git_hash=$(git -C . rev-parse --short HEAD) |
| 70 | + $Filename = $current_date + "_" + $git_hash + "_Windows_welle-io-setup_x64" |
| 71 | +
|
| 72 | + # Run InnoSetup |
| 73 | + & "ISCC" "/F$Filename" "windows/installer.iss" |
| 74 | +
|
64 | 75 | - name: Archive artifacts (welle.io build dir)
|
65 | 76 | if: always() && steps.build.outcome == 'failure'
|
66 | 77 | uses: actions/upload-artifact@v3
|
|
0 commit comments