Skip to content

nightly-macOS-x86_64 #1135

nightly-macOS-x86_64

nightly-macOS-x86_64 #1135

name: nightly-macOS-x86_64
on:
workflow_dispatch:
inputs:
run_tests:
type: boolean
description: Enable/Disable test stage
default: true
schedule:
- cron: '0 0 * * *'
jobs:
nightly-macOS-x86_64:
strategy:
fail-fast: false
matrix:
boost:
- version: 1.71.0
- version: 1.76.0
build_type:
- type: Debug
warn_as_err: ON
- type: Release
warn_as_err: OFF
shared_libs:
- toggle: OFF
name: Static
- toggle: ON
name: Shared
with_openssl:
- toggle: OFF
name: 'noSSL'
- toggle: ON
name: 'SSL'
runs-on: macos-latest
name: >-
macOS-x86_64
(${{ matrix.build_type.type }}, ${{ matrix.shared_libs.name }}, ${{ matrix.with_openssl.name }}, ${{matrix.boost.version}})
env:
OPENSSL_ROOT_DIR: /usr/local/opt/openssl/
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
brew install openssl@1.1 thrift curl
./scripts/install-boost.sh ${{matrix.boost.version}}
- name: Download hazelcast-enterprise-tests.jar
run: |
curl -H "Authorization: token ${{ secrets.GH_TOKEN }}" https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar > hazelcast-enterprise-5.3.0-SNAPSHOT-tests.jar
- name: Build & Install
env:
BUILD_DIR: build
INSTALL: ON
WARN_AS_ERR: ${{ matrix.build_type.warn_as_err }}
run: |
./scripts/build-unix.sh \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type.type }} \
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/destination \
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs.toggle }} \
-DWITH_OPENSSL=${{ matrix.with_openssl.toggle }} \
-DBUILD_TESTS=ON \
-DBUILD_EXAMPLES=OFF
- name: Test
if: ${{ inputs.run_tests || github.event_name == 'schedule' }}
env:
BUILD_DIR: build
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
run: |
./scripts/test-unix.sh
- name: Verify Installation
env:
BUILD_DIR: build-examples
run: |
./scripts/verify-installation-unix.sh \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/destination \
-DWITH_OPENSSL=${{ matrix.with_openssl.toggle }}