Skip to content

chore: Update installer script path and workflow configuration #31

chore: Update installer script path and workflow configuration

chore: Update installer script path and workflow configuration #31

Workflow file for this run

name: Windows Release
on:
push:
branches:
- 'dev'
- 'continuous-integration'
tags:
- 'v*'
pull_request:
branches:
- 'dev'
- 'continuous-integration'
defaults:
run:
shell: cmd
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 6.6.3
ARTIFACT: openterface-installer.zip
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Get all tags for correct version determination
working-directory: ${{ github.workspace }}
run: |
git fetch --all --tags -f
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
host: windows
target: desktop
arch: win64_msvc2019_64
dir: ${{ runner.temp }}
modules: qtmultimedia qtserialport
setup-python: false
- 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
working-directory: ${{ runner.temp }}
run: |
7z x jom.zip -ojom
- name: Create build directory
run: mkdir ${{ runner.temp }}\build
- name: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Build
working-directory: ${{ runner.temp }}\build
run: |
qmake -r ${{ env.SOURCE_DIR }}\openterfaceQT.pro
${{ runner.temp }}\jom\jom -j2
mkdir package
mkdir package\driver
copy release\openterfaceQT.exe package
copy ${{ env.SOURCE_DIR }}\driver\windows\* package\driver
cd package
windeployqt --qmldir ${{ env.SOURCE_DIR }} openterfaceQT.exe --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: Compile .ISS to .EXE Installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: installer.iss
options: /O+ /DWorkingDir="${{ runner.temp }}\build"