-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (64 loc) · 2.52 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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