summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRina Fujino <18257209+rina23q@users.noreply.github.com>2022-05-31 17:18:01 +0200
committerRina Fujino <18257209+rina23q@users.noreply.github.com>2022-05-31 17:18:01 +0200
commita9a069add24e689f568576aff2a8d4081b418fe3 (patch)
tree523192c1a48b8a46e591583fd58944e632762c40
parentd95bcb021a90cfddcc2725670bffc9da668c2d71 (diff)
Add tedge_watchdog to build/integration/system-offsite workflows
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
-rw-r--r--.github/workflows/build-workflow.yml17
-rw-r--r--.github/workflows/integration-test-workflow.yml13
-rw-r--r--.github/workflows/system-test-offsite.yml5
3 files changed, 32 insertions, 3 deletions
diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml
index 7981e53d..17c9e673 100644
--- a/.github/workflows/build-workflow.yml
+++ b/.github/workflows/build-workflow.yml
@@ -75,6 +75,13 @@ jobs:
command: deb
args: -p tedge_agent
+ - name: Build tedge_watchdog debian package
+ uses: actions-rs/cargo@v1
+ # https://github.com/marketplace/actions/rust-cargo
+ with:
+ command: deb
+ args: -p tedge_watchdog
+
- name: Build c8y_log_plugin debian package
uses: actions-rs/cargo@v1
# https://github.com/marketplace/actions/rust-cargo
@@ -195,6 +202,9 @@ jobs:
- name: Strip tedge_agent
run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/tedge_agent || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/tedge_agent
+ - name: Strip tedge_watchdog
+ run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/tedge_watchdog || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/tedge_watchdog
+
- name: Strip tedge_apt_plugin
run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/tedge_apt_plugin || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/tedge_apt_plugin
@@ -228,6 +238,13 @@ jobs:
command: deb
args: -p tedge_agent --no-strip --no-build --target=${{ matrix.target }}
+ - name: build tedge_watchdog debian package for target
+ uses: actions-rs/cargo@v1
+ # https://github.com/marketplace/actions/rust-cargo
+ with:
+ command: deb
+ args: -p tedge_watchdog --no-strip --no-build --target=${{ matrix.target }}
+
- name: build tedge_apt_plugin debian package for target
uses: actions-rs/cargo@v1
# https://github.com/marketplace/actions/rust-cargo
diff --git a/.github/workflows/integration-test-workflow.yml b/.github/workflows/integration-test-workflow.yml
index 9a2f393d..46dd2cf5 100644
--- a/.github/workflows/integration-test-workflow.yml
+++ b/.github/workflows/integration-test-workflow.yml
@@ -46,7 +46,7 @@ jobs:
continue-on-error: true
- name: purge
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto libmosquitto1 collectd-core
+ run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto libmosquitto1 collectd-core
- name: install mosquitto
run: sudo apt-get --assume-yes install mosquitto
@@ -66,6 +66,9 @@ jobs:
- name: install tedge agent package
run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_amd64.deb
+ - name: install tedge watchdog package
+ run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_amd64.deb
+
- name: install tedge plugin packages
run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb
@@ -128,6 +131,9 @@ jobs:
- name: install tedge agent package
run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_amd64.deb
+ - name: install tedge watchdog package
+ run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_amd64.deb
+
- name: install tedge plugin packages
run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb
@@ -200,7 +206,7 @@ jobs:
# mosquitto-clients is required for system test only, but has dependency on libmosquitto1.
# therefore, we need to purge it here, and mosquitto-clients is required only for RPi.
- name: purge
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
+ run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
- name: install mosquitto
run: sudo apt-get --assume-yes install mosquitto
@@ -223,6 +229,9 @@ jobs:
- name: install tedge agent package
run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_armhf.deb
+ - name: install tedge watchdog package
+ run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_armhf.deb
+
- name: install tedge plugin packages
run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb
diff --git a/.github/workflows/system-test-offsite.yml b/.github/workflows/system-test-offsite.yml
index b18fcf5e..9d284f32 100644
--- a/.github/workflows/system-test-offsite.yml
+++ b/.github/workflows/system-test-offsite.yml
@@ -52,7 +52,7 @@ jobs:
path: /home/pi/examples
- name: purge packages
- run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
+ run: sudo dpkg -P c8y_configuration_plugin tedge_agent c8y_log_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge_watchdog tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
- name: install packages
run: sudo apt-get --assume-yes install mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
@@ -78,6 +78,9 @@ jobs:
- name: install tedge agent package
run: sudo dpkg -i ./debian-package_unpack/tedge_agent_*_armhf.deb
+ - name: install tedge watchdog package
+ run: sudo dpkg -i ./debian-package_unpack/tedge_watchdog_*_armhf.deb
+
- name: install tedge plugin packages
run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb