Skip to content

Commit fbeb438

Browse files
Compile lightningd proto files
0 parents  commit fbeb438

File tree

34 files changed

+6238
-0
lines changed

34 files changed

+6238
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Setup Nix & Cachix
2+
description: Installs nix and cachix with config values
3+
4+
inputs:
5+
authToken:
6+
required: true
7+
8+
runs:
9+
using: composite
10+
11+
steps:
12+
- name: ❄ Prepare nix
13+
uses: cachix/install-nix-action@v30
14+
with:
15+
extra_nix_config: |
16+
accept-flake-config = true
17+
log-lines = 1000
18+
19+
- name: ❄ Cachix cache of nix derivations
20+
uses: cachix/cachix-action@v15
21+
with:
22+
name: cardano-scaling
23+
authToken: '${{ inputs.authToken }}'

.github/workflows/ci-nix.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Devour Flake"
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
10+
11+
permissions:
12+
checks: write
13+
pull-requests: write
14+
15+
jobs:
16+
devour-flake:
17+
name: "Devour Flake"
18+
strategy:
19+
matrix:
20+
system: [ ubuntu-latest, ubuntu-24.04-arm ]
21+
22+
runs-on: ${{ matrix.system }}
23+
steps:
24+
- name: 📥 Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: ❄ Setup Nix/Cachix
28+
uses: ./.github/actions/nix-cachix-setup
29+
with:
30+
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'
31+
32+
- name: ❄ Devour Flake
33+
run: |
34+
nix build github:srid/devour-flake \
35+
-L --no-link --print-out-paths \
36+
--override-input flake .

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist-newstyle/
2+
*.swp
3+
result*

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# grapesy-lightningd
2+
3+
This repository contains a [grapesy](https://hackage.haskell.org/package/grapesy) client
4+
for [lightningd](https://docs.corelightning.org/docs/grpc)
5+
6+
It is divided into packages:
7+
8+
* [grapesy-lightningd](grapesy-lightningd/) - Contains the metadata instances for use with grapesy, and a simple client as library code.
9+
* [grapesy-lightningd-testing](grapesy-lightningdd-testing) - Contains an executable (not cabal test) for running a test against a live lightningd service.
10+
* [proto-lens-lightningd](proto-lens-lightningd/) - Contains the protocol buffer bindings.
11+
12+
## Development
13+
14+
Do this to get started.
15+
16+
```
17+
nix develop
18+
cabal build all
19+
```
20+
21+
## Testing
22+
23+
Testing the must be done against a real lightningd service, which is provided by a NixOS VM test in a flake check attribute. To run all of the tests, run
24+
25+
```
26+
nix flake check
27+
```
28+
29+
You may run the test executable against a version of lightningd installed on your host if you wish.

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages: **/*.cabal

0 commit comments

Comments
 (0)