Skip to content

WIP – ci: add FFI binding verification workflows #5

WIP – ci: add FFI binding verification workflows

WIP – ci: add FFI binding verification workflows #5

Workflow file for this run

name: FFI - Kotlin Bindings
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify-kotlin:
name: Verify Kotlin Bindings
runs-on: ubuntu-latest
steps:
- name: Checkout CDK
uses: actions/checkout@v4
with:
path: cdk
- name: Checkout CDK Kotlin
uses: actions/checkout@v4
with:
repository: cashubtc/cdk-kotlin
path: cdk-kotlin
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v17
- name: Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: cdk-kotlin
- name: Generate Bindings
run: |
cd cdk-kotlin
# cdk-kotlin justfile expects CDK at ../cdk by default
nix develop .#ci --command just generate
- name: Verify Compilation
run: |
cd cdk-kotlin
# Fast check: compiles the code without running emulator tests
nix develop .#ci --command just test-compile