Skip to content

Commit

Permalink
Run on feature branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmitr committed May 29, 2024
1 parent 3c15085 commit 52e4780
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Cross-compile all targets
name: Cross-compile and publish bindings for all targets

on:
push:
branches:
- 'main'

workflow_dispatch:

env:
RUST_VERSION: 1.78
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
uniffi-bindings:
Expand Down Expand Up @@ -156,10 +155,11 @@ jobs:
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
git checkout -b "publish-${{ env.BRANCH_NAME }}"
git add ldk_node/ldk_node.go ldk_node/ldk_node.h ldk_node/ldk_node.c
git add ldk_node/x86_64-unknown-linux-gnu/libldk_node.so
git add ldk_node/arm-unknown-linux-gnueabihf/libldk_node.so
git add ldk_node/x86_64-pc-windows-gnu/ldk_node.dll
git add ldk_node/universal-macos/libldk_node.dylib
git commit -m "Update bindings."
git push
git push -u

0 comments on commit 52e4780

Please sign in to comment.