Skip to content

Commit

Permalink
use jom
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed Oct 8, 2023
1 parent 59b063e commit e0c1a18
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,29 @@ jobs:

- name: Clone OpenSSL on 5.15
shell: bash
if: startsWith(${{matrix.config.qt}}, '5.15')
if: ${{startsWith(matrix.config.qt, '5.15')}}
run: |
git clone https://github.com/tamlok/openssl-utils.git openssl-utils.git --depth=1
working-directory: ${{runner.workspace}}/build

- name: Download JOM
uses: suisei-cn/actions-download-file@v1
with:
url: http://download.qt.io/official_releases/jom/jom.zip
target: ${{runner.temp}}\

- name: Unzip JOM
run: |
7z x jom.zip -ojom
working-directory: ${{runner.temp}}

- name: Configure and Build Project
shell: cmd
run: |
qmake --version
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{matrix.config.platform}}
qmake -r -spec win32-msvc CONFIG-=debug CONFIG+=release %GITHUB_WORKSPACE%\vnote.pro
nmake
${{runner.temp}}\jom\jom
working-directory: ${{runner.workspace}}/build

- name: Package Project 1
Expand All @@ -111,7 +122,7 @@ jobs:

- name: "Package Project: Copy OpenSSL on 5.15"
shell: cmd
if: startsWith(${{matrix.config.qt}}, '5.15')
if: ${{startsWith(matrix.config.qt, '5.15')}}
run: |
set openssl_dir=openssl-utils.git\1.1.1j\Win_${{matrix.config.platform}}
copy %openssl_dir%\lib*.dll "%DISTRIB_PATH%\"
Expand All @@ -129,7 +140,7 @@ jobs:
DISTRIB_PATH: ${{runner.workspace}}/build/distrib/vnote

- name: Package Installer
if: startsWith(${{matrix.config.qt}}, '6.')
if: ${{startsWith(matrix.config.qt, '6.')}}
shell: cmd
run: |
copy "%GITHUB_WORKSPACE%\src\data\core\icons\vnote.ico" "%DISTRIB_PATH%\vnote.ico"
Expand All @@ -150,7 +161,7 @@ jobs:
DISTRIB_PATH: ${{runner.workspace}}/build/distrib/vnote

- name: Archive Installer
if: startsWith(${{matrix.config.qt}}, '6.')
if: ${{startsWith(matrix.config.qt, '6.')}}
uses: actions/upload-artifact@v2
with:
name: VNote-win-${{matrix.config.platform}}-qt${{matrix.config.qt}}_v${{env.VNOTE_VER}}.msi
Expand Down

0 comments on commit e0c1a18

Please sign in to comment.