From 93575d68cabd1a7c17b65d5ed9d2d64cbad93e74 Mon Sep 17 00:00:00 2001 From: Bob Chen Date: Wed, 6 Sep 2023 16:30:06 +0800 Subject: [PATCH] Create ci.macos.arm.yml --- .github/workflows/ci.macos.arm.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.macos.arm.yml diff --git a/.github/workflows/ci.macos.arm.yml b/.github/workflows/ci.macos.arm.yml new file mode 100644 index 00000000..78c6e42b --- /dev/null +++ b/.github/workflows/ci.macos.arm.yml @@ -0,0 +1,29 @@ +name: macOS ARM + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + macOS-clang: + runs-on: [self-hosted, macOS, ARM64] + + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + shell: bash + run: | + brew install cmake openssl gflags googletest gsasl + + - name: Build + run: | + cmake -B ${{github.workspace}}/build -D PHOTON_BUILD_TESTING=ON -D CMAKE_BUILD_TYPE=Debug \ + -D PHOTON_ENABLE_SASL=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 + cmake --build ${{github.workspace}}/build -j -- VERBOSE=1 + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest --timeout 3600 -V