apps/kterm: add to autobuilds via submodules (#477)
Author was okay to upload it to main repo, so I did ths. Also added to ISO. https://board.kolibrios.org/viewtopic.php?p=80620#p80620 https://git.kolibrios.org/b00bl1k/kterm --------- Co-authored-by: Burer <burer@kolibrios.org> Reviewed-on: #477 Reviewed-by: bad_Dr3dd0x <1702+bad_dr3dd0x@noreply.localhost> Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Co-authored-by: leency <lipatov.kiril@gmail.com> Co-committed-by: leency <lipatov.kiril@gmail.com>
This commit was merged in pull request #477.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# SPDX-FileCopyrightText: 2026 KolibriOS team
|
||||
|
||||
name: 'Update kterm submodule'
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 8 * * 6' # Saturdays at 08:00 (UTC)
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
name: 'Bump kterm to upstream'
|
||||
runs-on: kolibri-toolchain
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Bump kterm and open PR
|
||||
env:
|
||||
TOKEN: ${{ github.token }}
|
||||
API: ${{ github.api_url }}
|
||||
REPO: ${{ github.repository }}
|
||||
BRANCH: chore/update-kterm
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
git submodule update --remote programs/other/kterm
|
||||
if git diff --quiet; then
|
||||
echo "kterm is already up to date"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git config user.name "kolibri-bot"
|
||||
git config user.email "bot@kolibrios.org"
|
||||
git checkout -B "$BRANCH"
|
||||
git commit -am "kterm: bump submodule to upstream"
|
||||
git push -f origin "$BRANCH"
|
||||
|
||||
# Open a PR via the Gitea API using the built-in token.
|
||||
# 201 = created, 409 = a PR for this branch is already open (the
|
||||
# force-push above already updated it) - both are fine.
|
||||
http=$(curl -sS -o /tmp/pr.json -w '%{http_code}' -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"head\":\"${BRANCH}\",\"base\":\"main\",\"title\":\"kterm: bump submodule to upstream\"}" \
|
||||
"${API}/repos/${REPO}/pulls")
|
||||
echo "PR API HTTP status: $http"
|
||||
cat /tmp/pr.json; echo
|
||||
if [ "$http" != "201" ] && [ "$http" != "409" ]; then
|
||||
echo "Failed to create pull request"
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,3 +1,7 @@
|
||||
[submodule "programs/develop/oberon07"]
|
||||
path = programs/develop/oberon07
|
||||
url = https://github.com/AntKrotov/oberon-07-compiler.git
|
||||
[submodule "programs/other/kterm"]
|
||||
path = programs/other/kterm
|
||||
url = https://git.kolibrios.org/b00bl1k/kterm.git
|
||||
branch = master
|
||||
|
||||
@@ -295,6 +295,9 @@ extra_files = {
|
||||
{"kolibrios/res/system/", "common/signs.png"},
|
||||
{"kolibrios/utils/vmode", "common/vmode"},
|
||||
{"kolibrios/utils/texture", "common/utils/texture"},
|
||||
{"kolibrios/utils/kterm/kterm", VAR_PROGS .. "/other/kterm/kterm"},
|
||||
{"kolibrios/utils/kterm/serial.sys", VAR_DRVS .. "/serial/serial.sys"},
|
||||
{"kolibrios/utils/kterm/install.sh", SRC .. "/drivers/serial/install.sh"},
|
||||
{"kolibrios/utils/cnc_editor/cnc_editor", VAR_PROGS .. "/other/cnc_editor/cnc_editor"},
|
||||
{"kolibrios/utils/cnc_editor/kolibri.NC", SRC_PROGS .. "/other/cnc_editor/kolibri.NC"},
|
||||
{"kolibrios/utils/kfm/kfm.ini", "common/File Managers/kfm.ini"},
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#SHS
|
||||
echo Installing serial driver for kterm...
|
||||
cp /kolibrios/utils/kterm/serial.sys /sys/drivers/
|
||||
/sys/loaddrv serial
|
||||
echo Serial driver successfully installed!
|
||||
Submodule
+1
Submodule programs/other/kterm added at 67cf37da41
Reference in New Issue
Block a user