-
-
Notifications
You must be signed in to change notification settings - Fork 103
107 lines (83 loc) · 3.33 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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
- name: Install glew
shell: bash
run: |
curl -# -L -o glew.zip https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip
unzip glew.zip
mkdir -p include/
cp -a glew-*/include/* include/
rm glew.zip
curl -# -L -o glm.tar.gz https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz
tar zxf glm.tar.gz
cp -a glm-*/glm include/
curl -# -L -o dxfrw.tar.gz https://github.com/LibreCAD/libdxfrw/archive/refs/tags/LC2.2.0.tar.gz
tar zxf dxfrw.tar.gz
cp -a libdxfrw-*/src/*.h include/
curl -# -L -o freetype.tar.gz https://sourceforge.net/projects/freetype/files/freetype2/2.13.0/freetype-2.13.0.tar.gz
tar zxf freetype.tar.gz
cp -a freetype-*/include/* include/
- 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