Skip to content
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
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ on:

jobs:
install_fdb:
name: Install
name: Install FDB ${{ matrix.fdb_version }} on ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-13]
include:
# macOS test variations
- os: macos-13
fdb_version: '7.3.66'
- os: macos-14
fdb_version: '7.3.66'

# Linux test variations
- os: ubuntu-latest
fdb_version: '6.3.25'
- os: ubuntu-latest
fdb_version: '7.1.59'
- os: ubuntu-latest
fdb_version: '7.3.66'

runs-on: ${{ matrix.os }}

Expand Down
8 changes: 6 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2886,9 +2886,13 @@ try {
break;
}
case 'darwin': {
let url = `${base_url}/FoundationDB-${version}_x86_64.pkg`;
let arch = os.arch();
let arch_suffix = arch === 'arm64' ? 'arm64' : 'x86_64';
let url = `${base_url}/FoundationDB-${version}_${arch_suffix}.pkg`;
let pkg_name = `FoundationDB-${version}_${arch_suffix}.pkg`;

exec(`curl -L -O ${url}`);
exec(`sudo installer -pkg FoundationDB-${version}_x86_64.pkg -target /`);
exec(`sudo installer -pkg ${pkg_name} -target /`);
break;
}
default:
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ try {
break;
}
case 'darwin': {
let url = `${base_url}/FoundationDB-${version}_x86_64.pkg`;
let arch = os.arch();
let arch_suffix = arch === 'arm64' ? 'arm64' : 'x86_64';
let url = `${base_url}/FoundationDB-${version}_${arch_suffix}.pkg`;
let pkg_name = `FoundationDB-${version}_${arch_suffix}.pkg`;

exec(`curl -L -O ${url}`);
exec(`sudo installer -pkg FoundationDB-${version}_x86_64.pkg -target /`);
exec(`sudo installer -pkg ${pkg_name} -target /`);
break;
}
default:
Expand Down