|
@@ -6,7 +6,7 @@ on:
|
|
|
pull_request:
|
|
pull_request:
|
|
|
branches:
|
|
branches:
|
|
|
- main
|
|
- main
|
|
|
- - 'v[0-9]*.[0-9]*.x' # Match version branches like v0.13.x, v1.0.x, etc.
|
|
|
|
|
|
|
+ - "v[0-9]*.[0-9]*.x" # Match version branches like v0.13.x, v1.0.x, etc.
|
|
|
release:
|
|
release:
|
|
|
types: [created]
|
|
types: [created]
|
|
|
|
|
|
|
@@ -48,14 +48,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- build-args:
|
|
|
|
|
- [
|
|
|
|
|
- mint-token,
|
|
|
|
|
- melt-token,
|
|
|
|
|
- p2pk,
|
|
|
|
|
- proof-selection,
|
|
|
|
|
- wallet
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ build-args: [mint-token, melt-token, p2pk, proof-selection, wallet]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -84,8 +77,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- build-args:
|
|
|
|
|
- [
|
|
|
|
|
|
|
+ build-args: [
|
|
|
# Core crate testing
|
|
# Core crate testing
|
|
|
-p cashu,
|
|
-p cashu,
|
|
|
-p cashu --no-default-features,
|
|
-p cashu --no-default-features,
|
|
@@ -105,18 +97,18 @@ jobs:
|
|
|
-p cdk-sql-common,
|
|
-p cdk-sql-common,
|
|
|
-p cdk-sql-common --no-default-features --features wallet,
|
|
-p cdk-sql-common --no-default-features --features wallet,
|
|
|
-p cdk-sql-common --no-default-features --features mint,
|
|
-p cdk-sql-common --no-default-features --features mint,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# Database and infrastructure crates
|
|
# Database and infrastructure crates
|
|
|
-p cdk-redb,
|
|
-p cdk-redb,
|
|
|
-p cdk-sqlite,
|
|
-p cdk-sqlite,
|
|
|
-p cdk-sqlite --features sqlcipher,
|
|
-p cdk-sqlite --features sqlcipher,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# HTTP/API layer - consolidated
|
|
# HTTP/API layer - consolidated
|
|
|
-p cdk-axum,
|
|
-p cdk-axum,
|
|
|
-p cdk-axum --no-default-features,
|
|
-p cdk-axum --no-default-features,
|
|
|
-p cdk-axum --no-default-features --features redis,
|
|
-p cdk-axum --no-default-features --features redis,
|
|
|
-p cdk-axum --no-default-features --features "redis swagger",
|
|
-p cdk-axum --no-default-features --features "redis swagger",
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# Lightning backends
|
|
# Lightning backends
|
|
|
-p cdk-cln,
|
|
-p cdk-cln,
|
|
|
-p cdk-lnd,
|
|
-p cdk-lnd,
|
|
@@ -124,12 +116,12 @@ jobs:
|
|
|
-p cdk-fake-wallet,
|
|
-p cdk-fake-wallet,
|
|
|
-p cdk-payment-processor,
|
|
-p cdk-payment-processor,
|
|
|
-p cdk-ldk-node,
|
|
-p cdk-ldk-node,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
-p cdk-signatory,
|
|
-p cdk-signatory,
|
|
|
-p cdk-mint-rpc,
|
|
-p cdk-mint-rpc,
|
|
|
|
|
|
|
|
-p cdk-prometheus,
|
|
-p cdk-prometheus,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# FFI bindings
|
|
# FFI bindings
|
|
|
-p cdk-ffi,
|
|
-p cdk-ffi,
|
|
|
-p cdk-ffi --no-default-features,
|
|
-p cdk-ffi --no-default-features,
|
|
@@ -187,15 +179,8 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- build-args:
|
|
|
|
|
- [
|
|
|
|
|
- -p cdk-integration-tests,
|
|
|
|
|
- ]
|
|
|
|
|
- database:
|
|
|
|
|
- [
|
|
|
|
|
- SQLITE,
|
|
|
|
|
- POSTGRES
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ build-args: [-p cdk-integration-tests]
|
|
|
|
|
+ database: [SQLITE, POSTGRES]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -234,14 +219,8 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- build-args:
|
|
|
|
|
- [
|
|
|
|
|
- -p cdk-integration-tests,
|
|
|
|
|
- ]
|
|
|
|
|
- database:
|
|
|
|
|
- [
|
|
|
|
|
- SQLITE,
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ build-args: [-p cdk-integration-tests]
|
|
|
|
|
+ database: [SQLITE]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -282,12 +261,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- database:
|
|
|
|
|
- [
|
|
|
|
|
- memory,
|
|
|
|
|
- sqlite,
|
|
|
|
|
- redb
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ database: [memory, sqlite, redb]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -322,7 +296,6 @@ jobs:
|
|
|
- name: Test mint
|
|
- name: Test mint
|
|
|
run: nix develop -i -L .#stable --command just test
|
|
run: nix develop -i -L .#stable --command just test
|
|
|
|
|
|
|
|
-
|
|
|
|
|
payment-processor-itests:
|
|
payment-processor-itests:
|
|
|
name: "Payment processor tests"
|
|
name: "Payment processor tests"
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
@@ -331,12 +304,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- ln:
|
|
|
|
|
- [
|
|
|
|
|
- FAKEWALLET,
|
|
|
|
|
- CLN,
|
|
|
|
|
- LND
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ ln: [FAKEWALLET, CLN, LND]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -375,8 +343,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- build-args:
|
|
|
|
|
- [
|
|
|
|
|
|
|
+ build-args: [
|
|
|
# Core library - all features EXCEPT swagger (which breaks MSRV)
|
|
# Core library - all features EXCEPT swagger (which breaks MSRV)
|
|
|
'-p cdk --features "mint,wallet,auth,nostr,bip353,tor,prometheus"',
|
|
'-p cdk --features "mint,wallet,auth,nostr,bip353,tor,prometheus"',
|
|
|
|
|
|
|
@@ -456,10 +423,7 @@ jobs:
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: true
|
|
fail-fast: true
|
|
|
matrix:
|
|
matrix:
|
|
|
- database:
|
|
|
|
|
- [
|
|
|
|
|
- SQLITE,
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ database: [SQLITE]
|
|
|
steps:
|
|
steps:
|
|
|
- name: checkout
|
|
- name: checkout
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
@@ -560,9 +524,5 @@ jobs:
|
|
|
uses: Swatinem/rust-cache@v2
|
|
uses: Swatinem/rust-cache@v2
|
|
|
with:
|
|
with:
|
|
|
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
|
shared-key: "stable-${{ steps.flake-hash.outputs.hash }}"
|
|
|
- - name: Setup Python
|
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
|
- with:
|
|
|
|
|
- python-version: '3.11'
|
|
|
|
|
- name: Run FFI tests
|
|
- name: Run FFI tests
|
|
|
- run: nix develop -i -L .#stable --command just ffi-test
|
|
|
|
|
|
|
+ run: nix develop -i -L .#integration --command just ffi-test
|