87 lines
2.4 KiB
YAML
87 lines
2.4 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: Configure Gitea auth for private submodules
|
|
env:
|
|
MONERO_C_GITEA_PAT: ${{ secrets.MONERO_C_GITEA_PAT }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
if [ -z "${MONERO_C_GITEA_PAT:-}" ]; then
|
|
echo "Missing MONERO_C_GITEA_PAT secret for private submodules"
|
|
exit 1
|
|
fi
|
|
|
|
git config --global url."http://tiamak:${MONERO_C_GITEA_PAT}@54.38.205.168:3000/".insteadOf "http://54.38.205.168:3000/"
|
|
git submodule sync
|
|
git -c protocol.version=2 submodule update --init --force monero salvium peya
|
|
git -C monero submodule sync --recursive
|
|
git -C salvium submodule sync --recursive
|
|
git -C peya submodule sync --recursive
|
|
git -C monero -c protocol.version=2 submodule update --init --force --recursive
|
|
git -C salvium -c protocol.version=2 submodule update --init --force --recursive
|
|
git -C peya -c protocol.version=2 submodule update --init --force --recursive
|
|
|
|
- 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
|
|
run: |
|
|
cd impls/monero.dart
|
|
./update_bindings.sh
|
|
|
|
- name: Check for dirty tree
|
|
run: |
|
|
git diff --exit-code
|