Skip to content

Commit 19d8cd3

Browse files
Update cmake.yml
1 parent 5b93dc9 commit 19d8cd3

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

.github/workflows/cmake.yml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CMake CI (Test customfetch)
22

33
on:
44
push:
5-
branches: [ "main", "plugins" ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ "main", "plugins" ]
7+
branches: [ "main" ]
88

99
jobs:
1010
build-ubuntu_22-04:
@@ -45,7 +45,7 @@ jobs:
4545
printf "getting 0x5353 hexcode\n" && grep -nri "5353" /sys/class/ || true
4646
4747
- name: Test customfetch
48-
run: LD_LIBRARY_PATH="./build:$LD_LIBRARY_PATH" customfetch --wrap-lines
48+
run: customfetch --wrap-lines
4949

5050
- name: Upload to github artifacts
5151
uses: actions/upload-artifact@v4
@@ -83,7 +83,7 @@ jobs:
8383
run: neofetch
8484

8585
- name: Test customfetch
86-
run: LD_LIBRARY_PATH="./build:$LD_LIBRARY_PATH" customfetch-gui --version
86+
run: customfetch-gui --version
8787

8888
- name: Upload to github artifacts
8989
uses: actions/upload-artifact@v4
@@ -136,7 +136,7 @@ jobs:
136136
printf "/etc/os-release\n" && cat /etc/os-release
137137
138138
- name: Test customfetch
139-
run: LD_LIBRARY_PATH="./build:$LD_LIBRARY_PATH" customfetch --wrap-lines
139+
run: customfetch --wrap-lines
140140

141141
build-macos:
142142
runs-on: macos-latest
@@ -147,17 +147,17 @@ jobs:
147147
- uses: actions/checkout@v4
148148

149149
- name: Install the packages
150-
run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@19
150+
run: brew install --overwrite fastfetch neofetch tree llvm
151151

152152
- name: uname -a && clang++ --version
153-
run: uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
154-
153+
run: uname -a && echo "\n" && $(brew --prefix llvm)/bin/clang++ --version
154+
155155
- name: Clean
156156
run: make distclean
157157

158158
- name: Compile and install
159159
run: |
160-
export CXX=$(brew --prefix llvm@19)/bin/clang++
160+
export CXX=$(brew --prefix llvm)/bin/clang++
161161
mkdir build && cd build
162162
cmake .. -DCMAKE_BUILD_TYPE=Debug
163163
make
@@ -169,11 +169,51 @@ jobs:
169169
run: fastfetch
170170

171171
- name: Test customfetch
172-
run: LD_LIBRARY_PATH="./build:$LD_LIBRARY_PATH" ./build/customfetch -D assets
172+
run: ./build/customfetch -D assets
173173

174174
- name: Upload to github artifacts
175175
uses: actions/upload-artifact@v4
176176
with:
177177
if-no-files-found: error
178178
name: customfetch-macos
179179
path: ./build/customfetch
180+
181+
build-macos-GUI:
182+
runs-on: macos-latest
183+
permissions:
184+
contents: read
185+
186+
steps:
187+
- uses: actions/checkout@v4
188+
189+
- name: Install the packages
190+
run: brew install --overwrite fastfetch neofetch tree llvm gtkmm3
191+
192+
- name: uname -a && clang++ --version
193+
run: uname -a && echo "\n" && $(brew --prefix llvm)/bin/clang++ --version
194+
195+
- name: Clean
196+
run: make distclean
197+
198+
- name: Compile and install
199+
run: |
200+
export CXX=$(brew --prefix llvm)/bin/clang++
201+
mkdir build && cd build
202+
cmake .. -DCMAKE_BUILD_TYPE=Debug -DGUI_APP=1
203+
make
204+
205+
- name: Test neofetch
206+
run: neofetch
207+
208+
- name: Test fastfetch
209+
run: fastfetch
210+
211+
- name: Test customfetch
212+
run: ./build/customfetch-gui --version
213+
214+
- name: Upload to github artifacts
215+
uses: actions/upload-artifact@v4
216+
with:
217+
if-no-files-found: error
218+
name: customfetch-macos-gui
219+
path: ./build/customfetch-gui

0 commit comments

Comments
 (0)