src.nth.io/

summaryrefslogtreecommitdiff
path: root/mattertimesync/build
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-07-28 21:11:08 -0500
committerLuke Hoersten <[email protected]>2026-07-28 21:11:08 -0500
commit207bff9cb9773e3e0ef7fe7114e4b1aa70ffd4b6 (patch)
treecc38ab4e2cb82ecdc9a8e4d03b3afbe2f6af6be0 /mattertimesync/build
parenta55c5e9d35530d03fa8c52ceef5d2457827f0851 (diff)
Rename mattertimesync role to mattertimectl (build + controller)HEADmain
- Rename role dir and all vars from mattertimesync to mattertimectl - Rename the server subrole to controller - Build via cargo instead of npm; run the binary directly (no node) - Default fabricLabel to "Matter Time Controller"
Diffstat (limited to 'mattertimesync/build')
-rw-r--r--mattertimesync/build/defaults/main.yaml9
-rw-r--r--mattertimesync/build/meta/main.yaml4
-rw-r--r--mattertimesync/build/tasks/main.yaml58
3 files changed, 0 insertions, 71 deletions
diff --git a/mattertimesync/build/defaults/main.yaml b/mattertimesync/build/defaults/main.yaml
deleted file mode 100644
index bee4e58..0000000
--- a/mattertimesync/build/defaults/main.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
----
-
-mattertimesync_version: "0.1.0"
-# https://github.com/lukehoersten/mattertimesync/tags
-# Pure-JS project: npm run bundle produces one self-contained mattertimesync.mjs
-# (no native modules), so the target only needs node to run it.
-mattertimesync_tar: "https://github.com/{{github_user}}/mattertimesync/archive/refs/tags/v{{mattertimesync_version}}.tar.gz"
-mattertimesync_build_dir: "{{build_work_dir}}/mattertimesync-{{mattertimesync_version}}"
-mattertimesync_srv_dir: "{{build_srv_dir}}"
diff --git a/mattertimesync/build/meta/main.yaml b/mattertimesync/build/meta/main.yaml
deleted file mode 100644
index 6116998..0000000
--- a/mattertimesync/build/meta/main.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-
-dependencies:
- - nodejs
diff --git a/mattertimesync/build/tasks/main.yaml b/mattertimesync/build/tasks/main.yaml
deleted file mode 100644
index c586e01..0000000
--- a/mattertimesync/build/tasks/main.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
----
-
-- name: ensure build work dir exists
- become: yes
- file:
- path: "{{build_work_dir}}"
- state: "directory"
- owner: "{{ansible_user}}"
- group: "{{ansible_user}}"
- mode: "0755"
-
-- name: unarchive mattertimesync source
- unarchive:
- remote_src: yes
- src: "{{mattertimesync_tar}}"
- dest: "{{build_work_dir}}/"
- creates: "{{mattertimesync_build_dir}}"
-
-- name: check if mattertimesync build exists
- stat:
- path: "{{mattertimesync_srv_dir}}/mattertimesync-{{mattertimesync_version}}.tar.gz"
- register: build_file
-
-- name: install mattertimesync build dependencies
- command: "npm ci"
- args:
- chdir: "{{mattertimesync_build_dir}}"
- # Keep the npm cache on build_work_dir (the SSD) instead of the SD card.
- environment:
- npm_config_cache: "{{build_work_dir}}/.npm"
- when: not build_file.stat.exists
-
-- name: bundle mattertimesync
- command: "npm run bundle"
- args:
- chdir: "{{mattertimesync_build_dir}}"
- creates: "{{mattertimesync_build_dir}}/mattertimesync.mjs"
- environment:
- npm_config_cache: "{{build_work_dir}}/.npm"
- when: not build_file.stat.exists
-
-- name: create build server dir
- become: yes
- file:
- path: "{{mattertimesync_srv_dir}}"
- mode: "0755"
- state: "directory"
-
-- name: create gz archive of mattertimesync bundle
- become: yes
- archive:
- path: "{{mattertimesync_build_dir}}/mattertimesync.mjs"
- dest: "{{mattertimesync_srv_dir}}/mattertimesync-{{mattertimesync_version}}.tar.gz"
- format: "gz"
- # force a real tar for the single-file bundle; the module otherwise gzips a
- # lone file into a bare .gz that the server's unarchive can't extract.
- force_archive: true
- when: not build_file.stat.exists