diff options
-rw-r--r-- | .github/workflows/build-workflow.yml | 17 | ||||
-rw-r--r-- | .github/workflows/ci_pipeline.yml | 44 | ||||
-rw-r--r-- | .github/workflows/integration-test-workflow.yml | 13 | ||||
-rw-r--r-- | .github/workflows/system-test-offsite.yml | 5 |
4 files changed, 71 insertions, 8 deletions
diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index a20eb9c7..5dab9ff6 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -82,6 +82,13 @@ jobs: command: deb args: -p tedge_logfile_request_plugin + - name: Build c8y_configuration_plugin debian package + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: deb + args: -p c8y_configuration_plugin + - name: build sawtooth-publisher for amd64 uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo @@ -197,6 +204,9 @@ jobs: - name: Strip tedge_logfile_request_plugin run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/tedge_logfile_request_plugin || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/tedge_logfile_request_plugin + - name: Strip c8y_configuration_plugin + run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/c8y_configuration_plugin || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/c8y_configuration_plugin + - name: build tedge debian package for target uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo @@ -239,6 +249,13 @@ jobs: command: deb args: -p tedge_logfile_request_plugin --no-strip --no-build --target=${{ matrix.target }} + - name: build c8y_configuration_plugin debian package for target + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: deb + args: -p c8y_configuration_plugin --no-strip --no-build --target=${{ matrix.target }} + - name: build sawtooth publisher 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 417ee964..3c007c18 100644 --- a/.github/workflows/ci_pipeline.yml +++ b/.github/workflows/ci_pipeline.yml @@ -198,6 +198,13 @@ jobs: command: deb args: -p tedge_logfile_request_plugin + - name: Build c8y_configuration_plugin debian package + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: deb + args: -p c8y_configuration_plugin + - name: build sawtooth-publisher for amd64 uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo @@ -312,6 +319,9 @@ jobs: - name: Strip tedge_logfile_request_plugin run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/tedge_logfile_request_plugin || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/tedge_logfile_request_plugin + - name: Strip c8y_configuration_plugin + run: arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/c8y_configuration_plugin || aarch64-linux-gnu-strip target/${{ matrix.target }}/release/c8y_configuration_plugin + - name: build tedge debian package for target uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo @@ -354,6 +364,13 @@ jobs: command: deb args: -p tedge_logfile_request_plugin --no-strip --no-build --target=${{ matrix.target }} + - name: build c8y_configuration_plugin debian package for target + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: deb + args: -p c8y_configuration_plugin --no-strip --no-build --target=${{ matrix.target }} + - name: build sawtooth publisher uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo @@ -427,7 +444,7 @@ jobs: continue-on-error: true - name: purge - run: sudo dpkg -P tedge_agent tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto libmosquitto1 collectd-core + run: sudo dpkg -P c8y_configuration_plugin tedge_agent tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto libmosquitto1 collectd-core - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -450,6 +467,8 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb - name: run tedge help run: tedge --help @@ -504,6 +523,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: Cargo test features (compile) # Compile in advance to avoid that cargo compiles during the test run # this seems to have an impact on some tests as the timing differs @@ -565,7 +587,7 @@ jobs: continue-on-error: true - name: purge - run: sudo dpkg -P tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -591,6 +613,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: run tedge help run: tedge --help @@ -686,7 +711,7 @@ jobs: continue-on-error: true - name: purge - run: sudo dpkg -P tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -712,6 +737,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: run tedge help run: tedge --help @@ -808,7 +836,7 @@ jobs: continue-on-error: true - name: purge - run: sudo dpkg -P tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -834,6 +862,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: run tedge help run: tedge --help @@ -930,7 +961,7 @@ jobs: continue-on-error: true - name: purge - run: sudo dpkg -P tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -956,6 +987,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: run tedge help run: tedge --help diff --git a/.github/workflows/integration-test-workflow.yml b/.github/workflows/integration-test-workflow.yml index 76ea471a..a00bc7a2 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 tedge_agent tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto libmosquitto1 collectd-core + run: sudo dpkg -P c8y_configuration_plugin tedge_agent tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto libmosquitto1 collectd-core - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -69,6 +69,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: run tedge help run: tedge --help @@ -128,6 +131,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_amd64.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_amd64.deb + - name: Cargo test features (compile) # If we do not compile in advance the timing in the test run # will not work out as some parts are still compiling during the run @@ -190,7 +196,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 tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin tedge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd - name: install mosquitto run: sudo apt-get --assume-yes install mosquitto @@ -216,6 +222,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_armhf.deb + - name: run tedge help run: tedge --help diff --git a/.github/workflows/system-test-offsite.yml b/.github/workflows/system-test-offsite.yml index d68ae99d..76fc53b9 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 tedge_agent tedge_logfile_request_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 tedge_logfile_request_plugin tedge_mapper tedge_apt_plugin tedge_apama_plugin 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 @@ -81,6 +81,9 @@ jobs: - name: install tedge plugin packages run: sudo dpkg -i ./debian-package_unpack/tedge_*_plugin_*_armhf.deb + - name: install c8y plugin packages + run: sudo dpkg -i ./debian-package_unpack/c8y_*_plugin_*_armhf.deb + - name: run tedge help run: tedge --help |