diff options
author | Rina Fujino <18257209+rina23q@users.noreply.github.com> | 2022-06-02 10:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 10:09:52 +0200 |
commit | 187cdbf7ee6dd03e51f0040b3333fcd6bd54a254 (patch) | |
tree | 335be01d1a36bfbd50ed4365d47bed55e89cba1b | |
parent | 4f8f5ecddd7e835cbf79faf9c5e060530f86d8ae (diff) | |
parent | a9a069add24e689f568576aff2a8d4081b418fe3 (diff) |
Merge pull request #1178 from rina23q/fix/port-tedge-watchdog-pipeline-to-main
Port adding tedge_watchdog pipeline to main branch
-rw-r--r-- | .github/workflows/build-workflow.yml | 17 | ||||
-rw-r--r-- | .github/workflows/ci_pipeline.yml | 45 | ||||
-rw-r--r-- | .github/workflows/integration-test-workflow.yml | 13 | ||||
-rw-r--r-- | .github/workflows/system-test-offsite.yml | 5 |
4 files changed, 72 insertions, 8 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/ci_pipeline.yml b/.github/workflows/ci_pipeline.yml index 159cdf85..d7ba7bba 100644 --- a/.github/workflows/ci_pipeline.yml +++ b/.github/workflows/ci_pipeline.yml @@ -191,6 +191,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 @@ -310,6 +317,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 @@ -343,6 +353,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 @@ -444,7 +461,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 @@ -464,6 +481,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 @@ -520,6 +540,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 @@ -587,7 +610,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-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 @@ -610,6 +633,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 @@ -711,7 +737,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-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 @@ -734,6 +760,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 @@ -836,7 +865,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-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 @@ -859,6 +888,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 @@ -961,7 +993,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-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 @@ -984,6 +1016,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/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 |