diff options
-rw-r--r-- | .github/workflows/build-workflow.yml | 17 | ||||
-rw-r--r-- | .github/workflows/integration-test-workflow.yml | 13 | ||||
-rw-r--r-- | .github/workflows/system-test-offsite.yml | 5 |
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 |