From 9bc9b8449af4c7c06cee262fd91d9f8166cd1a02 Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 7 Dec 2023 20:33:25 +0100 Subject: [PATCH] Add MacOS build to workflow --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9c4c89..82d6caa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,3 +19,20 @@ jobs: with: name: "Debian 10 and above" path: suncli + + macos-latest: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Build Soup + run: php Sun/vendor/Soup/build_lib.php + + - name: Build Sun + run: clang -o suncli Sun/sun.cpp -ISun/vendor/Soup libsoup.a -std=c++17 -fuse-ld=lld -lstdc++ -lstdc++fs -pthreads + + - name: Upload Sun + uses: actions/upload-artifact@v3 + with: + name: "MacOS (X86)" + path: suncli