Skip to content

Commit ff1f34b

Browse files
committed
workflow: makefile: enable macos build
1 parent d22d9e6 commit ff1f34b

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

.github/workflows/makefile.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -248,41 +248,41 @@ jobs:
248248
- name: Test customfetch
249249
run: ./build/debug/customfetch --wrap-lines
250250

251-
# build-macos:
252-
# runs-on: macos-latest
253-
# permissions:
254-
# contents: read
255-
#
256-
# steps:
257-
# - uses: actions/checkout@v4
258-
#
259-
# - name: Install the packages
260-
# run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@19
261-
#
262-
# - name: uname -a && clang++ --version
263-
# run: uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
264-
#
265-
# - name: Clean
266-
# run: make distclean
267-
#
268-
# - name: Compile
269-
# run: make DEBUG=1 GUI_APP=0 CXX=$(brew --prefix llvm@19)/bin/clang++
270-
#
271-
# - name: Test neofetch
272-
# run: neofetch
273-
#
274-
# - name: Test fastfetch
275-
# run: fastfetch
276-
#
277-
# - name: Test customfetch
278-
# run: ./build/debug/customfetch -D assets
279-
#
280-
# - name: Upload to github artifacts
281-
# uses: actions/upload-artifact@v4
282-
# with:
283-
# if-no-files-found: error
284-
# name: customfetch-macos
285-
# path: ./build/debug/customfetch
251+
build-macos:
252+
runs-on: macos-latest
253+
permissions:
254+
contents: read
255+
256+
steps:
257+
- uses: actions/checkout@v4
258+
259+
- name: Install the packages
260+
run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@19
261+
262+
- name: uname -a && clang++ --version
263+
run: uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
264+
265+
- name: Clean
266+
run: make distclean
267+
268+
- name: Compile
269+
run: make DEBUG=1 GUI_APP=0 CXX=$(brew --prefix llvm@19)/bin/clang++
270+
271+
- name: Test neofetch
272+
run: neofetch
273+
274+
- name: Test fastfetch
275+
run: fastfetch
276+
277+
- name: Test customfetch
278+
run: ./build/debug/customfetch -D assets
279+
280+
- name: Upload to github artifacts
281+
uses: actions/upload-artifact@v4
282+
with:
283+
if-no-files-found: error
284+
name: customfetch-macos
285+
path: ./build/debug/customfetch
286286

287287
# test-suitcase:
288288
# runs-on: ubuntu-22.04

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ifeq ($(DEBUG), 1)
2929
LTO_FLAGS = -fno-lto
3030
CXXFLAGS := -ggdb3 -Wall -Wextra -pedantic -Wno-unused-parameter -fsanitize=address \
3131
-DDEBUG=1 -fno-omit-frame-pointer $(DEBUG_CXXFLAGS) $(CXXFLAGS)
32-
LDFLAGS += -fsanitize=address -fno-lto
32+
LDFLAGS += -fsanitize=address -fno-lto -Wl,-rpath=$(BUILDDIR)
3333
else
3434
# Check if an optimization flag is not already set
3535
ifneq ($(filter -O%,$(CXXFLAGS)),)

0 commit comments

Comments
 (0)