Skip to content

Commit

Permalink
fix: build on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed Jun 10, 2024
1 parent ee88501 commit b1206f3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,37 @@ jobs:
"status": "done"
}
}'
macos:
strategy:
matrix:
otp-version: ['25', '26']
fdb-version: ['7.3.27']
runs-on: macos-14
env:
FDB_VERSION: ${{ matrix.fdb-version }}
# Set to 1 for verbose rebar3 logging
DEBUG: 0
# Set to 1 for even more verbose rebar3 logging
DIAGNOSTIC: 0
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Erlang
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp-version }}
rebar3-version: '3.17'
- name: Install FoundationDB
run: |
wget -q https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/FoundationDB-${FDB_VERSION}_arm64.pkg
sudo installer -pkg FoundationDB-${FDB_VERSION}_arm64.pkg -target /
fdbcli --exec "configure new single ssd tenant_mode=optional_experimental; status" --timeout 60
- name: Initialize FDB database
run: fdbcli --exec "configure new single ssd tenant_mode=optional_experimental; status" --timeout 60
- name: Compile
run: rebar3 compile
- name: EUnit tests
run: rebar3 eunit
2 changes: 1 addition & 1 deletion c_src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ erlfdb_transaction_get_range_split_points(
ErlFDBTransaction* t;
ErlNifBinary begin;
ErlNifBinary end;
int64_t chunkSize;
ErlNifSInt64 chunkSize;
FDBFuture* future;
void* res;

Expand Down

0 comments on commit b1206f3

Please sign in to comment.