Skip to content

Commit ac44b75

Browse files
committed
workflow: add build-macos
they said that Clang/LLVM (Homebrew) 18.1.8 was already pre-installed in the macos image runner, but it was a lie........
1 parent 772f1d5 commit ac44b75

File tree

1 file changed

+41
-8
lines changed

1 file changed

+41
-8
lines changed

.github/workflows/makefile.yml

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

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

99
jobs:
1010
build-deb:
@@ -23,7 +23,7 @@ jobs:
2323
sudo apt-get install binutils gettext lintian debhelper devscripts debmake autoconf automake autotools-dev dh-make fakeroot xutils pbuilder -y
2424
2525
- name: Clean
26-
run: make clean
26+
run: make distclean
2727

2828
- name: Create deb
2929
run: |
@@ -64,7 +64,7 @@ jobs:
6464
sudo apt-get install binutils lintian debhelper gettext devscripts debmake autoconf automake autotools-dev dh-make fakeroot xutils pbuilder -y
6565
6666
- name: Clean
67-
run: make clean
67+
run: make distclean
6868

6969
- name: Create deb
7070
run: |
@@ -96,7 +96,7 @@ jobs:
9696
sudo apt-get install neofetch tree build-essential g++-11 libwayland-dev gettext libgtk-3-dev pkg-config libdconf-dev libglib2.0-dev libgtkmm-3.0-dev libarchive-tools -y
9797
9898
- name: Clean
99-
run: make clean
99+
run: make distclean
100100

101101
- name: Compile and install
102102
run: make DEBUG=1 GUI_APP=0 CXX=x86_64-linux-gnu-g++-11 && sudo make install
@@ -135,7 +135,7 @@ jobs:
135135
sudo apt-get install neofetch tree build-essential g++-11 libwayland-dev gettext libgtk-3-dev pkg-config libdconf-dev libglib2.0-dev libgtkmm-3.0-dev -y
136136
137137
- name: Clean
138-
run: make clean
138+
run: make distclean
139139

140140
- name: Compile and install
141141
run: make DEBUG=1 GUI_APP=1 CXX=x86_64-linux-gnu-g++-11 && sudo make install GUI_APP=1
@@ -216,7 +216,7 @@ jobs:
216216
cat /etc/makepkg.conf
217217
218218
- name: Clean
219-
run: make clean
219+
run: make distclean
220220

221221
- name: Compile and install
222222
run: make install DEBUG=1 VENDOR_TEST=1 GUI_APP=0
@@ -267,6 +267,39 @@ jobs:
267267
name: customfetch-android-app
268268
path: android/app/build/outputs/apk/debug/app-debug.apk
269269

270+
build-macos:
271+
runs-on: macos-latest
272+
steps:
273+
- uses: actions/checkout@v4
274+
275+
- name: Install the packages
276+
run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@20
277+
278+
- name: uname -a && clang++ --version
279+
run: uname -a && echo "\n" && $(brew --prefix llvm@20)/bin/clang++ --version
280+
281+
- name: Clean
282+
run: make distclean
283+
284+
- name: Compile
285+
run: make DEBUG=1 GUI_APP=0 CXX=$(brew --prefix llvm@20)/bin/clang++
286+
287+
- name: Test neofetch
288+
run: neofetch
289+
290+
- name: Test fastfetch
291+
run: fastfetch
292+
293+
- name: Test customfetch
294+
run: ./build/debug/customfetch -D assets
295+
296+
- name: Upload to github artifacts
297+
uses: actions/upload-artifact@v4
298+
with:
299+
if-no-files-found: error
300+
name: customfetch-macos
301+
path: ./build/debug/customfetch
302+
270303
test-all-ascii-art:
271304
runs-on: ubuntu-latest
272305

@@ -277,7 +310,7 @@ jobs:
277310
run: sudo apt-get update && sudo apt-get install build-essential gettext tree pkg-config -y
278311

279312
- name: Clean
280-
run: make clean
313+
run: make distclean
281314

282315
- name: Compile and install
283316
run: sudo make install DEBUG=0 VENDOR_TEST=0 GUI_APP=0

0 commit comments

Comments
 (0)