forked from lightningdevkit/ldk-node
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.23 KB
/
publish-bindings-go.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build libraries for all targets
on:
workflow_call:
secrets:
LDK_NODE_GO_DEPLOY_KEY:
required: true
jobs:
publish-ldk-node-go:
runs-on: ubuntu-20.04
if: github.ref_name == 'main' || github.head_ref == 'main'
steps:
- name: Checkout ldk-node-go
uses: actions/checkout@v4
with:
repository: getAlby/ldk-node-go
ssh-key: ${{ secrets.LDK_NODE_GO_DEPLOY_KEY }}
- name: Download bindings
uses: actions/download-artifact@v4
with:
name: ldk-node-bindings
path: ldk_node
- name: Download Linux x86_64 libs
uses: actions/download-artifact@v4
with:
name: ldk-node-x86_64-unknown-linux-gnu
path: ldk_node/x86_64-unknown-linux-gnu
- name: Download Linux aarch64 libs
uses: actions/download-artifact@v4
with:
name: ldk-node-aarch64-unknown-linux-gnu
path: ldk_node/aarch64-unknown-linux-gnu
- name: Download Linux ARM libs
uses: actions/download-artifact@v4
with:
name: ldk-node-arm-unknown-linux-gnueabihf
path: ldk_node/arm-unknown-linux-gnueabihf
- name: Download Windows x86_64 MSVC libs
uses: actions/download-artifact@v4
with:
name: ldk-node-x86_64-pc-windows-msvc
path: ldk_node/x86_64-pc-windows-msvc
- name: Download macOS libs
uses: actions/download-artifact@v4
with:
name: ldk-node-universal-apple-darwin
path: ldk_node/universal-macos
- name: Commit and push bindings
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
git config --global push.autoSetupRemote true
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/aarch64-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-msvc/ldk_node.dll
git add ldk_node/universal-macos/libldk_node.dylib
git commit -m "Update bindings."
git push