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
16 changes: 14 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
packages: write

steps:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
if [[ -z "$VERSION" ]]; then
VERSION="$GITHUB_REF_NAME"
fi
echo "version=${VERSION#v}" >> $GITHUB_OUTPUT
echo "version=${VERSION#v}" >> "$GITHUB_OUTPUT"

- name: Generate Android bindings
run: ./build_android.sh
Expand All @@ -67,6 +67,18 @@ jobs:
working-directory: bindings/android
run: ./gradlew build -Pversion=${{ steps.version.outputs.version }}

- name: Upload native debug symbols artifact
uses: actions/upload-artifact@v4
with:
name: bitkit-core-native-debug-symbols-${{ steps.version.outputs.version }}
path: bindings/android/native-debug-symbols.zip

- name: Upload native debug symbols to release
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.event.release.tag_name }}" bindings/android/native-debug-symbols.zip --clobber

# same credentials env vars used in the publishing section of build.gradle.kts
- name: Publish to GitHub Packages
working-directory: bindings/android
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target/
bindings/android/native-debug-symbols.zip
.idea/
.DS_Store
# AI
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitkitcore"
version = "0.1.72"
version = "0.1.73"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import PackageDescription

let tag = "v0.1.72"
let tag = "v0.1.73"
let checksum = "0fc1897b87ef3224abcec3b119d02c4a93966dd04c0a7c938588d4c5e98fc013"
let url = "https://github.com/synonymdev/bitkit-core/releases/download/\(tag)/BitkitCore.xcframework.zip"

Expand Down
2 changes: 1 addition & 1 deletion bindings/android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ cd ./bindings/android
./gradlew publish -Pversion=0.1.0
```

Run `./build_android.sh` before any direct Gradle publish so `jniLibs` is regenerated with native debug metadata and 16 KB page-size alignment.
Run `./build_android.sh` before any direct Gradle publish so `jniLibs` is regenerated as stripped release libraries with separate `native-debug-symbols.zip` metadata and 16 KB page-size alignment.
2 changes: 1 addition & 1 deletion bindings/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
group=com.synonym
version=0.1.72
version=0.1.73
Loading
Loading