-
-
Notifications
You must be signed in to change notification settings - Fork 103
89 lines (66 loc) · 2.51 KB
/
main.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
81
82
83
84
85
86
87
88
89
name: Librecad3 Builders
'on':
workflow_dispatch: null
push:
branches:
- main
- ci_dev
jobs:
linux:
name: Building LibreCAD3 on ubuntu runner
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- run: ${{ github.workspace }}/scripts/ubuntu-install/installDependenciesAndBuildRepo.sh
- run: cd ${{ github.workspace }}
- run: sudo ${{ github.workspace }}/scripts/ubuntu-install/createAppImage.sh
#- run: cd ${{ github.workspace }}
#- run: ${{ github.workspace }}/scripts/ubuntu-install/createSnap.sh
- name: Uploading AppImage
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/build/LibreCAD**AppImage
name: LibreCAD3.AppImage
retention-days: 2
#- name: Uploading snap
# uses: actions/upload-artifact@v3
# with:
# path: ${{ github.workspace }}/librecad**snap
# name: LibreCAD3.snap
# retention-days: 2
windows:
name: Building LibreCAD3 on windows runner
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install Visual Studio 2019 with tools
run: ${{ github.workspace }}/scripts/windows-install/installVisualStudio.bat
- run: cd ${{ github.workspace }}
- run: ${{ github.workspace }}/scripts/windows-install/installConan.bat
- run: ${{ github.workspace }}/scripts/windows-install/createConanDirAndInstallDependencies.bat
- run: cd ${{ github.workspace }}/..
- name: Install Qt5
uses: jurplel/install-qt-action@v3
with:
version: 5.12.2
- name: Install Eigen
shell: bash
run: |
curl -# -L -o eigen.tar.bz2 https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
tar jxvf eigen.tar.bz2
- run: setx QTDIR "${{ env.Qt5_DIR }}\5.15.2\msvc2019_64"
- run: setx QT_QPA_PLATFORM_PLUGIN_PATH "${{ env.Qt5_DIR }}\plugins\platforms\"
- run: ${{ github.workspace }}/scripts/windows-install/addPathVariables.ps1
- run: cd ${{ github.workspace }}
- run: ${{ github.workspace }}/scripts/windows-install/buildLibrecadAndCreatePackage.bat
- name: Uploading exe
uses: actions/[email protected]
with:
path: '${{ github.workspace }}/out/build/windows-default/LibreCAD3**.exe'
name: LibreCAD3.exe