From b145a48c33ca25cf7f72b6eed6ab6c6b98059f70 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Thu, 6 Jan 2022 03:29:19 +0200 Subject: [PATCH] workflow: mac cl --- .github/workflows/ci-macos.yml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci-macos.yml diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml new file mode 100644 index 0000000..92a5700 --- /dev/null +++ b/.github/workflows/ci-macos.yml @@ -0,0 +1,43 @@ +name: CI (macOS) + +on: +# push: +# paths: +# - '.github/**' +# - '3rdparty/**' +# - 'hash/**' +# - 'scripts/**' +# - 'src/**' +# - 'CMakeLists.txt' +# - 'cmake_subdirs/**' +# pull_request: +# paths: +# - '.github/**' +# - '3rdparty/**' +# - 'hash/**' +# - 'scripts/**' +# - 'src/**' +# - 'CMakeLists.txt' +# - 'cmake_subdirs/**' + workflow_dispatch: + +jobs: + build-macos: + runs-on: macOS-latest + steps: + - uses: actions/checkout@master + - name: Install dependencies + run: brew install ninja + - name: Build + run: | + cmake -G Ninja + ninja + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: test + - uses: actions/upload-artifact@master + with: + name: chdman-macos-${{ steps.previoustag.outputs.tag }} + path: chdman \ No newline at end of file