Skip to content

Commit

Permalink
Provide Rust SDK path for next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Nov 16, 2023
1 parent e3416d3 commit e26b04e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release_sdk_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Set linkable git ref
run: |
pushd ../matrix-rust-sdk
pushd ${{ env.RUST_SDK_PATH }}
echo LINKABLE_REF=$(git show-ref --verify refs/heads/${{ github.event.inputs.rust-checkout-ref }}) >> $GITHUB_OUTPUT
popd
Expand Down
6 changes: 6 additions & 0 deletions scripts/build-rust-for-target.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ def execute_build_script(script_directory: str, sdk_path: str, module: Module, t
clone_repo_and_checkout_ref(sdk_path, sdk_git_url, args.ref)

execute_build_script(current_dir, sdk_path, args.module, args.target)

# Export Rust SDK path for next steps, if running in GitHub Actions
env_file_path = os.getenv('GITHUB_ENV')
if os.path.exists(env_file_path):
with open(env_file_path, "a") as file:
file.write(f"RUST_SDK_PATH={sdk_path}")

0 comments on commit e26b04e

Please sign in to comment.