Skip to content

Fixed memory leak problem. #13

Fixed memory leak problem.

Fixed memory leak problem. #13

Workflow file for this run

name: Windows Release
on:
push:
branches:
- 'main'
- 'continuous-integration'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'continuous-integration'
defaults:
run:
shell: cmd
env:
SOURCE_PROJECT_NAME: CppEFProviderTest
QT_VERSION: 5.15.2
jobs:
build:
runs-on: windows-latest
steps:
- name: (1) Checkout repo
uses: actions/checkout@main
with:
submodules: recursive
- name: (2) Get all tags for correct version determination
working-directory: ${{ github.workspace }}
run: |
git fetch --all --tags -f
- name: (3) Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win64_msvc2019_64
dir: ${{ runner.temp }}
modules: core sql widgets testlib
setup-python: false
- name: (4) Download JOM
uses: suisei-cn/actions-download-file@v1
with:
url: http://download.qt.io/official_releases/jom/jom.zip
target: ${{ runner.temp }}\
- name: (5) Unzip JOM
working-directory: ${{ runner.temp }}
run: |
7z x jom.zip -ojom
- name: (6) Create build directory
run: mkdir ${{ runner.temp }}\build
- name: (7) Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: (8) Build
working-directory: ${{ runner.temp }}\build
run: |
qmake -r ${{ github.workspace }}\${{env.SOURCE_PROJECT_NAME}}.pro
${{ runner.temp }}\jom\jom -j2
cd release
windeployqt --qmldir ${{ github.workspace }} ${{env.SOURCE_PROJECT_NAME}}.exe --pdb --release --compiler-runtime
copy C:\Windows\System32\concrt140.dll .
copy C:\Windows\System32\vccorlib140.dll .
copy C:\Windows\System32\msvcp140.dll .
copy C:\Windows\System32\vcruntime140.dll .
- name: (9) Running tests
working-directory: ${{ runner.temp }}\build
run: |
${{ runner.temp }}\build\release\${{env.SOURCE_PROJECT_NAME}}.exe