forked from lightningdevkit/ldk-node
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 907 Bytes
/
gen-bindings-go.yaml
File metadata and controls
34 lines (28 loc) · 907 Bytes
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
name: Generate Go bindings
on:
workflow_call:
inputs:
rust_version:
required: true
type: string
jobs:
uniffi-bindings:
runs-on: ubuntu-22.04
steps:
- name: Set up Rust
run: |
rustup toolchain install ${{ inputs.rust_version }}
rustup default ${{ inputs.rust_version }}
- name: Checkout
uses: actions/checkout@v4
- name: Install uniffi-bindgen-go
run: cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.4.0+v0.28.3
- name: Generate bindings
run: uniffi-bindgen-go bindings/ldk_node.udl -o ffi/golang -c ./uniffi.toml
- name: Archive bindings
uses: actions/upload-artifact@v4
with:
name: ldk-node-bindings
path: |
ffi/golang/ldk_node/ldk_node.go
ffi/golang/ldk_node/ldk_node.h