Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: TOOLS-2937 use github actions to build m-series macos #101

Merged
merged 7 commits into from
Jul 30, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/mac-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Mac Artifact
on:
push:
branches: [ main, test-ready, "bugfix-*" ]
branches: [ main, actionsHub, "bugfix-*" ]
pull_request:
branches: []
workflow_call:
Expand All @@ -12,10 +12,19 @@ on:
type: string
jobs:
build:
runs-on: macos-11
strategy:
matrix:
ev-lib: ["", libev, libuv, libevent]
os: [macos-11, macos-14]
# ev-lib: ["", libev, libuv, libevent]
ev-lib: [libuv]
include:
- os: macos-11
openssl-path: /usr/local/opt/openssl
dwelch-spike marked this conversation as resolved.
Show resolved Hide resolved
ev-path: /usr/local
- os: macos-14
openssl-path: /opt/homebrew/opt/openssl
ev-path: /opt/homebrew
runs-on: ${{ matrix.os }}
env:
LIBYAML_VERSION: 0.2.5
steps:
Expand All @@ -33,7 +42,7 @@ jobs:
cond: ${{ inputs.submodule != '' }}
if_true: aerospike-tools/${{ inputs.submodule }} # In this case we are expecting to checkout the tools package.
if_false: asbench
- uses: kenchan0130/actions-system-info@v1.1.0
- uses: kenchan0130/actions-system-info@v1.3.0
id: system-info
- name: Install dependencies from brew
run: |
Expand All @@ -55,7 +64,7 @@ jobs:
git describe --tags --always
- name: Build asbench
run: |
make EVENT_LIB=${{ matrix.ev-lib }} LIBUV_STATIC_PATH=/usr/local/lib LIBEVENT_STATIC_PATH=/usr/local/lib LIBEV_STATIC_PATH=/usr/local/lib OPENSSL_STATIC_PATH=/usr/local/opt/openssl/lib
make EVENT_LIB=${{ matrix.ev-lib }} LIBUV_STATIC_PATH=${{ matrix.ev-path }}/lib LIBEVENT_STATIC_PATH=${{ matrix.ev-path }}/lib LIBEV_STATIC_PATH=${{ matrix.ev-path }}/lib OPENSSL_STATIC_PATH=${{ matrix.openssl-path }}/lib
working-directory: ${{ steps.working-dir.outputs.value }}
- name: Sanity test asbench artifact
run: |
Expand All @@ -69,7 +78,7 @@ jobs:
if_true: asbench
if_false: asbench-${{ matrix.ev-lib }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.system-info.outputs.platform }}-${{ runner.arch }}-${{ runner.os }}-${{ steps.system-info.outputs.release }}-${{ steps.artifact-name.outputs.value }}
path: ${{ steps.working-dir.outputs.value }}/target/asbench
Expand All @@ -80,13 +89,13 @@ jobs:
if: "${{ inputs.submodule == '' }}"

steps:
- uses: kenchan0130/actions-system-info@v1.1.0
- uses: kenchan0130/actions-system-info@v1.3.0
id: system-info
- name: Get artifacts
uses: actions/download-artifact@v3
with:
path: target
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: binaries
path: target
Expand Down
Loading