From f2eda961376b93161d07668fb0f22961516ede5e Mon Sep 17 00:00:00 2001 From: anzz1 Date: Fri, 17 Mar 2023 03:58:34 +0200 Subject: [PATCH 1/2] Fix Makefile --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cbbfb1589..fb83d41ba 100644 --- a/Makefile +++ b/Makefile @@ -176,7 +176,7 @@ $(info I CC: $(CCV)) $(info I CXX: $(CXXV)) $(info ) -default: main quantize +default: chat quantize # # Build library @@ -191,10 +191,6 @@ utils.o: utils.cpp utils.h clean: rm -f *.o main quantize -main: main.cpp ggml.o utils.o - $(CXX) $(CXXFLAGS) main.cpp ggml.o utils.o -o main $(LDFLAGS) - ./main -h - chat: chat.cpp ggml.o utils.o $(CXX) $(CXXFLAGS) chat.cpp ggml.o utils.o -o chat $(LDFLAGS) From 8a3d6f2ea4bf1f3e43876d65666bc777d18e2565 Mon Sep 17 00:00:00 2001 From: anzz1 Date: Fri, 17 Mar 2023 04:00:40 +0200 Subject: [PATCH 2/2] CI: Enable Linux/MacOS builds --- .github/workflows/build.yml | 68 ++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59aac6314..034ab4de9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,37 +14,43 @@ on: paths: ['CMakeLists.txt', 'Makefile', '**.h', '*.c', '**.cpp'] jobs: -# ubuntu-latest: -# runs-on: ubuntu-latest -# -# steps: -# - name: Clone -# uses: actions/checkout@v1 -# -# - name: Dependencies -# run: | -# sudo apt-get update -# sudo apt-get install build-essential -# -# - name: Build -# run: | -# make -# -# macOS-latest: -# runs-on: macOS-latest -# -# steps: -# - name: Clone -# uses: actions/checkout@v1 -# -# - name: Dependencies -# run: | -# brew update -# -# - name: Build -# run: | -# make -# + ubuntu-latest: + runs-on: ubuntu-latest + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v1 + + - name: Dependencies + id: depends + run: | + sudo apt-get update + sudo apt-get install build-essential + + - name: Build + id: make_build + run: | + make + + macOS-latest: + runs-on: macOS-latest + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v1 + + - name: Dependencies + id: depends + run: | + brew update + + - name: Build + id: make_build + run: | + make + windows-latest: runs-on: windows-latest