Skip to content

Commit

Permalink
[CLIENT-1839] Add option to build release wheels (#472)
Browse files Browse the repository at this point in the history
* Add option to build wheels workflow create release wheels
* Update C client to 6.4.3
  • Loading branch information
juliannguyen4 authored Jul 21, 2023
1 parent ec96549 commit 36c0a6b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on:
type: boolean
required: true
default: false
build-rc-or-release:
type: choice
options:
- rc
- release
default: 'rc'
required: true

jobs:
update-version:
Expand All @@ -21,12 +28,17 @@ jobs:
with:
fetch-depth: 0

- name: Get new version and build number
run: |
pip install python-semantic-release==7.*
- run: pip install python-semantic-release==7.*

- run: |
latest_tag=$(cat VERSION)
echo "Bumping off of latest tag $latest_tag"
new_tag=$(pysemver bump prerelease $latest_tag)
# If creating release wheels, bump rc version to release version
if [[ ${{ inputs.build-rc-or-release }} == "rc" ]]; then
new_tag=$(pysemver bump prerelease $latest_tag)
else
new_tag=$(pysemver nextver $latest_tag patch)
fi
echo "NEW_TAG=$new_tag" >> $GITHUB_ENV
echo "The new tag for this build is $new_tag"
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
path = aerospike-client-c
# url = [email protected]:aerospike/aerospike-client-c.git
url = https://github.com/aerospike/aerospike-client-c.git
branch = stage
branch = master
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.0.0-rc.13
12.0.0
2 changes: 1 addition & 1 deletion src/main/aerospike.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int Aerospike_Clear(PyObject *aerospike)
PyMODINIT_FUNC PyInit_aerospike(void)
{

const char version[] = "12.0.0-rc.13";
const char version[] = "12.0.0";
// Makes things "thread-safe"
Py_Initialize();
int i = 0;
Expand Down

0 comments on commit 36c0a6b

Please sign in to comment.