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

fix: build on arm64 #24

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,38 @@ 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
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install erlang@${{ matrix.otp-version }}
echo "$(brew --prefix erlang@${{ matrix.otp-version }})/bin" >> $GITHUB_PATH
wget https://s3.amazonaws.com/rebar3/rebar3
sudo mv rebar3 /usr/local/bin/ && sudo chmod +x /usr/local/bin/rebar3
export "PATH=$(brew --prefix erlang@${{ matrix.otp-version }})/bin:$PATH"
erl -eval 'erlang:display(erlang:system_info(system_version)),halt()'
- 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 /
- name: Initialize FDB database
run: fdbcli --exec "configure tenant_mode=optional_experimental; status" --timeout 60
- name: Compile
run: rebar3 compile
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
Loading