Skip to content

Commit ce60b02

Browse files
authored
chore: update compile.sh with release-please (#54)
Adds `compile.sh` to `extra-files`. This script is used to compile both base+redis SDKs locally for convenience.
1 parent 92be742 commit ce60b02

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

release-please-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"launchdarkly-server-sdk.c",
99
".github/actions/ci/action.yml",
1010
"README.md",
11-
"scripts/update-versions.sh"
11+
"scripts/update-versions.sh",
12+
"scripts/compile.sh"
1213
]
1314
}
1415
}

scripts/compile.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
# the paths fetched by ./get-cpp-sdk-locally.sh.
55

66
set -e
7-
luarocks make launchdarkly-server-sdk-2.0.1-0.rockspec LD_DIR=./cpp-sdks/build/INSTALL
8-
luarocks make launchdarkly-server-sdk-redis-2.0.1-0.rockspec LDREDIS_DIR=./cpp-sdks/build/INSTALL
7+
8+
version="2.0.1" # {x-release-please-version }
9+
10+
luarocks make launchdarkly-server-sdk-$version-0.rockspec LD_DIR=./cpp-sdks/build/INSTALL
11+
luarocks make launchdarkly-server-sdk-redis-$version-0.rockspec LDREDIS_DIR=./cpp-sdks/build/INSTALL

0 commit comments

Comments
 (0)