-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (62 loc) · 2.53 KB
/
build_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
name: CMake on Windows
on:
[workflow_call, workflow_dispatch]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.2'
target: 'desktop'
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: gsl getopt libxml2
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true
- name: Obtain files from outside the repository
shell: cmd
run: |
cd ${{runner.workspace}}\jabs
.\get_external_files.bat
- name: Checkout JIBAL
uses: actions/checkout@v4
with:
repository: JYU-IBA/jibal
path: jibal
- name: Configure JIBAL
run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -B ${{github.workspace}}\build_jibal -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{github.workspace}}\jibal
- name: Build JIBAL
run: cmake --build ${{ github.workspace }}\build_jibal --config ${{ env.build_type }}
- name: Install JIBAL
run: cmake --install ${{ github.workspace }}\build_jibal --prefix ${{ github.workspace }}\install
- name: Configure JaBS
run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -DCMAKE_PREFIX_PATH="${{github.workspace}}\install" -B ${{github.workspace}}\build_jabs -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{github.workspace}}
- name: Build JaBS
run: cmake --build ${{github.workspace}}\build_jabs --config ${{env.BUILD_TYPE}}
- name: Install JaBS
run: cmake --install ${{ github.workspace }}\build_jabs --prefix ${{ github.workspace }}\install
- name: Configure QJaBS
run: cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -DCMAKE_PREFIX_PATH="${{github.workspace}}\install" -B ${{github.workspace}}\build_qjabs -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{github.workspace}}\qjabs
- name: Build QJaBS
run: cmake --build ${{github.workspace}}\build_qjabs --config ${{env.BUILD_TYPE}}
- name: Deploy Qt
run: ${{env.QT_ROOT_DIR}}\bin\windeployqt ${{github.workspace}}\build_qjabs\${{ env.build_type }}\qjabs.exe
- name: Run deploy script
shell: cmd
run: |
cd ${{runner.workspace}}\jabs\release_scripts
.\deploy_win.bat
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact-windows
path: |
${{ github.workspace }}/build_qjabs/${{ env.build_type }}