-
Notifications
You must be signed in to change notification settings - Fork 1
133 lines (99 loc) · 3.59 KB
/
makefile.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
name: Makefile CI (Test customfetch)
on:
push:
branches: [ "main", "test", "windows" ]
pull_request:
branches: [ "main", "test", "windows" ]
jobs:
build_ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: sudo apt-get update && sudo apt-get install build-essential cmake neofetch tree libgtk-3-dev pkg-config libpci-dev libgtkmm-3.0-dev -y
- name: Clean
run: make clean
- name: Compile
run: sudo make install DEBUG=1 VENDOR_TEST=1 GUI_SUPPORT=0
- name: Test neofetch
run: neofetch
- name: Check system values
run: |
ls -l /sys/devices/virtual/dmi/id/ /sys/class/dmi/id/
grep -Eri "virtual" /sys/class/dmi/id/ || true
cat /sys/devices/virtual/dmi/id/board_name /sys/devices/virtual/dmi/id/board_vendor /sys/devices/virtual/dmi/id/board_version
tree /sys/devices/system/cpu/cpu0/
printf "/etc/os-release\n" && cat /etc/os-release
- name: Test customfetch
run: ./build/debug/cufetch
build_Arch-AUR:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- uses: actions/checkout@v4
- name: Install the packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf tree neofetch --noconfirm --needed
- name: get /etc/sudoers
run: |
sed -i "s#root ALL=(ALL:ALL) ALL#root ALL=(ALL:ALL) NOPASSWD: ALL\nnobody ALL=(ALL:ALL) NOPASSWD: ALL#g" /etc/sudoers
cat /etc/sudoers
- name: get /etc/makepkg.conf
run: |
sed -i "s#purge debug lto#purge !debug lto#" /etc/makepkg.conf
cat /etc/makepkg.conf
- name: Build and install using makepkg
run: |
git clone https://aur.archlinux.org/customfetch-git.git
chown -R nobody customfetch-git
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
- name: Test neofetch
run: neofetch
- name: Test customfetch
run: cufetch
build_Arch:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- uses: actions/checkout@v4
- name: Install the packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf tree neofetch fastfetch --noconfirm --needed
- name: get /etc/sudoers
run: |
sed -i "s#root ALL=(ALL:ALL) ALL#root ALL=(ALL:ALL) NOPASSWD: ALL\nnobody ALL=(ALL:ALL) NOPASSWD: ALL#g" /etc/sudoers
cat /etc/sudoers
- name: get /etc/makepkg.conf
run: |
sed -i "s#purge debug lto#purge !debug lto#" /etc/makepkg.conf
cat /etc/makepkg.conf
- name: Clean
run: make clean
- name: Compile
run: make install DEBUG=1 VENDOR_TEST=1 GUI_SUPPORT=0
- name: Test neofetch
run: neofetch
- name: Test fastfetch
run: fastfetch
- name: Check system values
run: |
ls -l /sys/devices/virtual/dmi/id/ /sys/class/dmi/id/
grep -Eri "virtual" /sys/class/dmi/id/ || true
cat /sys/devices/virtual/dmi/id/board_name /sys/devices/virtual/dmi/id/board_vendor /sys/devices/virtual/dmi/id/board_version
tree /sys/devices/system/cpu/cpu0/
printf "/etc/os-release\n" && cat /etc/os-release
- name: Test customfetch
run: ./build/debug/cufetch
build_Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Visual Studio
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Build
run: make clean && make DEBUG=1 VENDOR_TEST=1 GUI_SUPPORT=0
- name: Test customfetch
run: ./build/debug/cufetch