Embed monero.dart into monero_c (#16)

This commit is contained in:
cyan
2024-07-30 14:05:19 +02:00
committed by GitHub
parent 734662a597
commit 3b9928a665
18 changed files with 18827 additions and 16 deletions

39
.github/workflows/dart_bindings.yaml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Check if dart bindings are in sync
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
issues: write
pull-requests: write
jobs:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- uses: 8BitJonny/gh-get-current-pr@3.0.0
id: PR
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: generate bindings
run: |
cd impls/monero.dart
./update_bindings.sh
- name: check if git tree is clean
run: |
if [ -z "$(git status --porcelain)" ]; then
exit 0
else
exit 1
fi
- name: Create or update comment
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Invalid bindings found in monero.dart, make sure to run `./impls/monero.dart/update_bindings.sh`