mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
AT command reference: follow D-Modem's, with each bump
tools/at_reference.py copies the D-Modem submodule's docs/at_commands.pdf into the app's assets (and names its commit in their README); --check fails when the two differ. The D-Modem bump workflow runs it with each bump, and CI's docs job checks it. The copy here was from 7f53883: now 3f7d6b2's, the submodule's. Signed-off-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK
This commit is contained in:
6 files changed
+77
-6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
# docs: every function documented (tools/doc_check.py).
|
||||
# docs: every function documented (tools/doc_check.py), and the app's AT
|
||||
# command reference D-Modem's (tools/at_reference.py).
|
||||
# build: the APK (all four ABIs), the unit tests and lint.
|
||||
# native: the native engine on the runner against a dmodemd over loopback
|
||||
# SIP (native-test).
|
||||
@@ -61,6 +62,9 @@ jobs:
|
||||
- name: Every function documented
|
||||
run: python3 tools/doc_check.py
|
||||
|
||||
- name: The AT command reference is D-Modem's
|
||||
run: python3 tools/at_reference.py --check
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
# (a hung test ends here, not at GitHub's 6 hours)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# D-Modem bump: moves the external/d-modem-re submodule to D-Modem's
|
||||
# latest main and opens (or updates) a pull request for it, set to merge
|
||||
# latest main, with the AT command reference that comes with it (the
|
||||
# app's assets' copy, tools/at_reference.py), and opens (or updates) a pull request for it, set to merge
|
||||
# by itself once its checks pass. Daily, by hand (Actions > D-Modem bump >
|
||||
# Run workflow), or from D-Modem (a repository_dispatch of type
|
||||
# "d-modem-main", for when its main changes).
|
||||
@@ -70,6 +71,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
git -C external/d-modem-re checkout --quiet "$new"
|
||||
python3 tools/at_reference.py
|
||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
echo 'log<<EOF'
|
||||
@@ -86,9 +88,9 @@ jobs:
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git checkout -B "$BRANCH"
|
||||
git add external/d-modem-re
|
||||
git add external/d-modem-re app/src/main/assets/docs
|
||||
git commit -m "Bump D-Modem to ${NEW:0:7}" \
|
||||
-m "external/d-modem-re: ${OLD:0:7} -> ${NEW:0:7} (D-Modem's main)." \
|
||||
-m "external/d-modem-re: ${OLD:0:7} -> ${NEW:0:7} (D-Modem's main), and its AT command reference." \
|
||||
-m "Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||
git push --force origin "$BRANCH"
|
||||
|
||||
|
||||
Reference in new issue
Block a user