Skip to content

Commit 0163601

Browse files
authored
Merge pull request #56 from matrix-org/bca/fix_crypto_release_workflow
Fix crypto sdk release script
2 parents 69b71fa + 50d10e0 commit 0163601

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/release_crypto.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
build_native:
1717
name: Build and generate crypto native libs
18-
runs-on: macos-latest
18+
runs-on: ubuntu-latest
1919
env:
2020
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2121
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
@@ -60,10 +60,10 @@ jobs:
6060
with:
6161
ndk-version: r25c
6262

63-
- name: Create symlinks for buildchain
64-
run: |
65-
export PATH="${{ steps.install-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATH"
66-
echo $PATH
63+
# - name: Create symlinks for buildchain
64+
# run: |
65+
# export PATH="${{ steps.install-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATH"
66+
# echo $PATH
6767

6868
- uses: actions/cache@v4
6969
with:
@@ -111,7 +111,7 @@ jobs:
111111
- name: Run build script
112112
env:
113113
ANDROID_NDK: ${{ steps.install-ndk.outputs.ndk-path }}
114-
run: ./main/scripts/build.sh -r -m crypto -p rust-sdk
114+
run: ./scripts/build.sh -r -m crypto -p rust-sdk
115115

116116
- name: Find all .aar files
117117
run: find . -name "*.aar"
@@ -132,7 +132,7 @@ jobs:
132132
CRYPTO_SDK_VERSION: ${{ github.event.inputs.crypto-sdk-version }}
133133
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134
run: |
135-
python3 ./main/scripts/release_crypto.py --version ${{ github.event.inputs.crypto-sdk-version }} --sdk_path ./rust-sdk
135+
python3 ./scripts/release_crypto.py --version ${{ github.event.inputs.crypto-sdk-version }} --sdk_path ./rust-sdk
136136
137137
# - name: Run test python
138138
# run: |

scripts/release_crypto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def get_git_hash(directory: str) -> str:
6363

6464
def commit_and_push_changes(directory: str, message: str):
6565
try:
66-
subprocess.run(["git", "add", "."], cwd=directory, check=True)
66+
subprocess.run(["git", "add", "buildSrc/src/main/kotlin/BuildVersionsCrypto.kt"], cwd=directory, check=True)
67+
subprocess.run(["git", "add", "crypto/crypto-android/src/main/kotlin/org/matrix/rustcomponents/sdk/crypto/matrix_sdk_crypto_ffi.kt"], cwd=directory, check=True)
6768
subprocess.run(["git", "commit", "-m", message], cwd=directory, check=True)
6869
subprocess.run(["git", "push"], cwd=directory, check=True)
6970
print("Changes committed and pushed successfully.")

0 commit comments

Comments
 (0)