-
-
Notifications
You must be signed in to change notification settings - Fork 103
111 lines (84 loc) · 3.08 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
108
109
110
111
name: Librecad3 Builders
'on':
workflow_dispatch: null
push:
branches:
- main
- ci_dev
jobs:
linux:
name: BuildLinux
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: BuildWindows
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
- run: setx QTDIR "${{ env.Qt5_DIR }}\5.15.2\msvc2019_64"
- run: setx QT_QPA_PLATFORM_PLUGIN_PATH "${{ env.Qt5_DIR }}\plugins\platforms\"
- run: setx QT_QPA_PLATFORM_PLUGIN_PATH "${{ env.Qt5_DIR }}\plugins\platforms\"
- 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 }}/build/bin/LibreCAD3**.exe'
name: LibreCAD3.exe
UpdateAssets:
if: github.repository_owner == 'LibreCAD'
needs: [linux, windows]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch artifacts
uses: actions/download-artifact@v3
- name: Upload latest pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Continuous Build"
files: |
assets/LibreCAD*.*
LICENSE