From 52e4780141fa3c2fadec61d6e91d3c85ea44ea20 Mon Sep 17 00:00:00 2001 From: Roman Dmitrienko Date: Wed, 29 May 2024 21:09:58 +0200 Subject: [PATCH] Run on feature branches. --- ...ile-all-targets.yml => build-and-publish-bindings.yml} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{cross-compile-all-targets.yml => build-and-publish-bindings.yml} (96%) diff --git a/.github/workflows/cross-compile-all-targets.yml b/.github/workflows/build-and-publish-bindings.yml similarity index 96% rename from .github/workflows/cross-compile-all-targets.yml rename to .github/workflows/build-and-publish-bindings.yml index 5df228140..cc5f208b2 100644 --- a/.github/workflows/cross-compile-all-targets.yml +++ b/.github/workflows/build-and-publish-bindings.yml @@ -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: @@ -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