forked from parallaxinc/PropellerIDE
-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (127 loc) · 3.56 KB
/
build.yml
File metadata and controls
150 lines (127 loc) · 3.56 KB
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
---
name: Build
on: [push]
jobs:
linux:
runs-on: "${{matrix.os}}"
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install system dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y \
debhelper \
fakeroot \
fpc \
help2man \
imagemagick \
libqt5serialport5-dev \
libudev-dev \
lintian \
python3-pip \
python3-setuptools \
qt5-default \
tree
qmake -v
make --version
gcc --version
- name: Install packthing
run: |
sudo python3 -m pip install git+https://github.com/lamestation/packthing.git
packthing --version
- name: Build self-extracting archive
run: |
packthing -j4 run
mv build/staging/*.run .
- name: Save self-extracting archive
uses: actions/upload-artifact@v2
with:
name: run
path: "*.run"
- name: Build Debian package
run: |
fakeroot packthing -j4 --override-version "0.0.0-$(basename "$GITHUB_REF")" deb
mv build/staging/*.deb .
- name: Save debian package
uses: actions/upload-artifact@v2
with:
name: deb
path: "*.deb"
macos:
runs-on: "${{matrix.os}}"
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Set up environment
run: |
echo "/usr/local/Cellar/qt/5.15.1/bin" >> "$GITHUB_PATH"
echo "/usr/local/opt/qt/bin" >> "$GITHUB_PATH"
- name: Install system dependencies
run: |
brew install fpc tree qt5
qmake -v
make --version
clang --version
- name: Install packthing
run: |
sudo python3 -m pip install git+https://github.com/lamestation/packthing.git
packthing --version
- name: Build DMG image
run: |
packthing -j4 --override-version "0.0.0-$(basename "$GITHUB_REF")" dmg
mv build/staging/*.dmg .
- name: Save DMG image
uses: actions/upload-artifact@v2
with:
name: dmg
path: "*.dmg"
windows:
runs-on: "${{matrix.os}}"
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
modules: "qtserialport"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install system dependencies
run: |
pip install Pillow
qmake -v
make --version
- name: Install packthing
run: |
python -m pip install git+https://github.com/lamestation/packthing.git
packthing --version
- name: Build InnoSetup installer
env:
CC: clang
CXX: clang++
run: |
packthing -j4 --override-version "0.0.0-$(basename "$GITHUB_REF")" inno
mv build/staging/*.exe .
- name: Save InnoSetup installer
uses: actions/upload-artifact@v2
with:
name: inno
path: "*.exe"