-
Notifications
You must be signed in to change notification settings - Fork 2
174 lines (149 loc) · 5.89 KB
/
remaken-actions.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
name: Remaken CI
run-name: ${{ github.actor }} - run Remaken CI
on:
push:
branches:
- master
- develop
- '/releases/**'
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
env:
tag_version: ${{ github.ref_name == 'develop' && '1.10.0' || github.ref_name }}
jobs:
windows-ci:
runs-on: windows-2019
steps:
# Remaken git checkout
- name: Remaken git checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
# Pkgconfig
- name: Pkgconfig
#run: choco install -yr --acceptlicense --no-progress pkgconfiglite
run: pip install pkgconfig
# nsis // already installed
#- name: Nsis
# run: choco install -yr --acceptlicense --no-progress nsis
# nsis plugin download
- name: Download nsis envar plugin
uses: suisei-cn/[email protected]
id: downloadfile # Remember to give an ID if you need the output filename
with:
url: "https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip"
target: ./
# nsis plugin install
- name: unzip nsis envar plugin
run: 7z x EnVar_plugin.zip -y -o"C:\Program Files (x86)\NSIS"
# if use runs-on: windows-2022
# Visual Studio 2019 Community
# - name: Visual Studio 2019
# run: choco install visualstudio2019community
# - name: Visual C++ 2019
# run: choco install visualstudio2019-workload-nativedesktop
# Conan
- name: Install conan 1.59.0
run: pip install --upgrade conan==1.59.0
# Conan configuration
- name: conan profile configuration
run: |
conan profile new default --detect
conan profile update settings.compiler.cppstd=17 default
conan profile update settings.compiler.version=16 default
conan profile update settings.compiler.toolset=v142 default
# Conan configuration remote
- name: conan remote
run: conan remote add -i 0 gitlab_remaken_deps https://gitlab.com/api/v4/projects/53589240/packages/conan
# Install Qt
- name: Install aqt
run: choco install aqt
- name: Install Qt kit 5.15.2 msvc2019 64b
run: aqt install-qt windows desktop 5.15.2 win64_msvc2019_64 -O ${{ github.workspace }}/tools/Qt
#- name: Install QtCreator
# run: aqt install-tool windows desktop tools_qtcreator -O ${{ github.workspace }}/tools/Qt
# see for change with direct download of jom
# Install Jom
- name: Install Jom
uses: suisei-cn/[email protected]
id: downloadJom
with:
url: "http://download.qt.io/official_releases/jom/jom.zip"
target: ./
- name : unzip jom
run: 7z x jom.zip -y -o"${{ github.workspace }}\tools\Qt\Tools\qtcreator\bin\jom"
# Build solution
- name: Build remaken
working-directory: ./scripts/win
run: .\build_remaken_project.bat remaken shared ..\.. 5.15.2 "${{ github.workspace }}\tools\Qt\5.15.2\msvc2019_64\bin" "${{ github.workspace }}\tools\Qt\Tools\qtcreator\bin\jom"
# Move file at root for Tag release
- name: move setup
run: |
mv scripts\win\build-remaken\shared\release\Setup_Remaken.exe .\Setup_Remaken.exe
mv scripts\win\build-remaken\shared\release\remaken.exe .\remaken.exe
# Delete previous latest version
- name: delete previous latest version
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ env.tag_version }}/win
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true
# Tag current version
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ env.tag_version }}/win
prerelease: true
title: ${{ env.tag_version }}/win
files: |
Setup_Remaken.exe
remaken.exe
linux-ci:
runs-on: ubuntu-22.04
steps:
# Remaken git checkout
- name: Remaken git checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
# Pkgconfig
- name: Pkgconfig
run: pip install pkgconfig
# Install Qt
- name: Install Qt
run: sudo apt-get install qtbase5-dev
# Conan
- name: Conan
run: pip install --upgrade conan==1.59.0
# Conan configuration
- name: conan profile configuration
run: |
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update settings.compiler.cppstd=17 default
conan profile update settings.compiler.version=11 default
# Conan configuration remote
- name: conan remote
run: conan remote add -i 0 gitlab_remaken_deps https://gitlab.com/api/v4/projects/53589240/packages/conan
# Build solution
- name: Build remaken
working-directory: ./scripts/unixes
run: ./build_remaken_project.sh remaken shared ../.. 5.15.2 /usr/bin
- name: move setup
run: mv scripts/unixes/build-remaken/shared/release/remaken ./remaken-ubuntu22.04
# Delete previous latest version
- name: delete previous latest version
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ env.tag_version }}/unixes
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true
# Tag current version
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ env.tag_version }}/unixes
prerelease: true
title: ${{ env.tag_version }}/unixes
files: |
remaken-ubuntu22.04