Skip to content

Account for check-cfg #81

Account for check-cfg

Account for check-cfg #81

name: Cross-compile and publish bindings for all targets
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
RUST_VERSION: 1.78.0
jobs:
setup:
runs-on: ubuntu-latest
outputs:
rust_version: ${{ env.RUST_VERSION }}
steps:
- run: echo "setting output variables"
generate-bindings:
needs: setup
uses: ./.github/workflows/gen-bindings-go.yaml
with:
rust_version: ${{ needs.setup.outputs.rust_version }}
build-libraries:
needs: setup
uses: ./.github/workflows/build-libraries.yaml
with:
rust_version: ${{ needs.setup.outputs.rust_version }}
publish-ldk-node-go:
if: github.ref_name == 'main' || github.head_ref == 'main'
needs:
- generate-bindings
- build-libraries
uses: ./.github/workflows/publish-bindings-go.yaml
secrets:
LDK_NODE_GO_DEPLOY_KEY: ${{ secrets.LDK_NODE_GO_DEPLOY_KEY }}