-
Notifications
You must be signed in to change notification settings - Fork 74
37 lines (30 loc) · 1.45 KB
/
build_macos_ARM.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow will build Speedb on a Mac OS server
#
# This workflow assumes the self hosted runner on a Mac machine is ready.
# The Mac OS server must have all the tools and software required for Speedb building to be installed
name: ARM - Build on Mac
on:
workflow_call:
inputs:
verSion:
required: true
type: string
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest # will be changed to a MAC when it will be available
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v3
- name: 'build'
run: |
echo "the built library java/target/libspeedbjni-osx-x86_64.jnilib needs to be uploaded to the folloing location"
echo "java/target/libspeedbjni-osx-arm64.jnilib s3://spdb-builder/jar_test/v${{ inputs.verSion }}/libspeedbjni-osx-arm64.jnilib"
# export JAVA_HOME=`/usr/libexec/java_home -v 11`
# export CPPFLAGS="-I$JAVA_HOME/include"
# export CXXFLAGS="-I$JAVA_HOME/include"
# ROCKSDB_DISABLE_JEMALLOC=1 PORTABLE=1 DEBUG_LEVEL=0 make -j 4 rocksdbjavastatic
- name: 'upload artifacts' #This step executed only when this workflow is called by another and a version is provided
if: inputs.verSion != ' '
run: echo "nothing to do here until the real environment is ready"
#run: aws s3 cp java/target/libspeedbjni-osx-x86_64.jnilib s3://spdb-builder/jar_test/v${{ inputs.verSion }}/libspeedbjni-osx-arm64.jnilib