73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
name: consistency
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- main
|
|
paths:
|
|
- ".gitea/workflows/consistency.yml"
|
|
- "generate_checksum.sh"
|
|
- "impls/monero.dart/**"
|
|
- "impls/monero.ts/**"
|
|
- "monero_libwallet2_api_c/**"
|
|
- "salvium_libwallet2_api_c/**"
|
|
- "peya_libwallet2_api_c/**"
|
|
- ".gitmodules"
|
|
|
|
jobs:
|
|
checksums:
|
|
name: checksum sync
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
submodules: false
|
|
|
|
- name: Generate checksums
|
|
run: |
|
|
./generate_checksum.sh
|
|
|
|
- name: Check for dirty tree
|
|
run: |
|
|
git diff --exit-code
|
|
|
|
dart-bindings:
|
|
name: Dart bindings sync
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
submodules: false
|
|
|
|
- name: Install libclang for ffigen
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y clang libclang-14-dev llvm-14
|
|
|
|
- name: Setup Flutter
|
|
uses: https://github.com/subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
|
|
- name: Fetch Dart dependencies
|
|
run: |
|
|
cd impls/monero.dart
|
|
dart pub get
|
|
|
|
- name: Regenerate Dart bindings
|
|
env:
|
|
LIBCLANG_PATH: /usr/lib/llvm-14/lib
|
|
run: |
|
|
cd impls/monero.dart
|
|
./update_bindings.sh
|
|
|
|
- name: Check for dirty tree
|
|
run: |
|
|
git diff --exit-code
|