-
Notifications
You must be signed in to change notification settings - Fork 37
70 lines (61 loc) · 1.74 KB
/
build.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
name: Build cnping
on:
push:
pull_request:
jobs:
Build-for-Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
debhelper-compat \
libglvnd-dev \
libx11-dev \
libxext-dev \
libxinerama-dev \
mesa-common-dev
# Would be nice if we could pull those directly from debian/control
- name: Install more dependencies
run: |
sudo apt-get install -y \
make \
build-essential \
binutils-mingw-w64-i686 \
gcc-mingw-w64-i686 \
g++-mingw-w64-i686 \
devscripts \
appstream \
desktop-file-utils
- name: Build
run: make cnping cnping.exe
- uses: actions/upload-artifact@v4
with:
name: cnping-exe
path: "*.exe"
- name: Build deb
run: debuild --no-sign
- uses: actions/upload-artifact@v4
with:
name: cnping-debian
path: |
/home/runner/work/cnping/*.deb
/home/runner/work/cnping/*.ddeb
- name: Validate AppStream data
run: appstreamcli validate freedesktop/com.github.cntools.cnping.metainfo.xml
- name: Validate desktop file
run: desktop-file-validate freedesktop/com.github.cntools.cnping.desktop
# Build-RPM-for-Fedora:
# runs-on: ubuntu-latest
# container: dreua/ ...
# steps:
# - name: RPM Build
# run: /cnping/cnping-build
# - uses: actions/upload-artifact@v4
# with:
# name: cnping-fedora-rpm
# path: /github/home/rpmbuild/**/*.rpm