Windows Installer build #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Windows Installer build | |
# Controls when the workflow will run | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: windows-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Add msbuild to PATH (Windows) | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x86_64 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install choco dependencies | |
shell: cmd | |
run: | | |
choco install --no-progress -y wget astyle zip innosetup | |
choco install --no-progress -y --force Temurin8 --params="/ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome /INSTALLDIR=%cd%\openjdk\" /quiet | |
- name: create virtual environment | |
shell: cmd | |
run: | | |
python -m venv env-build | |
call .\env-build\Scripts\activate.bat | |
pip install aqtinstall mkl-static swig cmake ninja | |
aqt install-qt windows desktop 6.8.0 win64_msvc2022_64 -m qt5compat qtcharts qtdatavis3d | |
echo %PATH% >> $GITHUB_ENV | |
- name: checkout build system | |
run: | | |
git clone https://github.com/copasi/build-system | |
- name: initialize build system | |
shell: bash | |
run: | | |
# print bash version | |
bash --version | |
# print bash location | |
which bash | |
export PATH=$PWD\env-build\Scripts:$PATH | |
export HOME_BUILD_SYSTEM=$PWD | |
source build-system/profile/windows-msys | |
export Qt6_DIR=$PWD/6.8.0/msvc2022_64 | |
export PATH=$PWD/6.8.0/msvc2022_64/bin/:$PATH | |
export SELECT_QT=Qt6 | |
export JAVA_HOME=$PWD/openjdk | |
# emerge | |
emerge | |
# build dependencies, ignore exit code | |
install-dependencies || true | |
# build release | |
release --branch release/Version-4.45 --comment stable --noscp | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: windows | |
path: | | |
build-system/packages/setup.release/*.zip | |
build-system/packages/setup.release/*.tar.gz | |