ci: bsim workflow: Update bsim to version pointed by manifest
To ensure a reproducible enviroment while not needing to update the docker images too often, let's update on the fly the docker bsim installation to whatever the Zephyr manifest points to. Note that the update and rebuild is incremental, so if the docker image already has the right version the operation is very fast. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
c73133d102
commit
933d338c97
15
.github/workflows/bsim-tests.yaml
vendored
15
.github/workflows/bsim-tests.yaml
vendored
|
@ -110,6 +110,21 @@ jobs:
|
||||||
drivers/ieee802154/**
|
drivers/ieee802154/**
|
||||||
include/zephyr/net/ieee802154*
|
include/zephyr/net/ieee802154*
|
||||||
|
|
||||||
|
- name: Update BabbleSim to manifest revision
|
||||||
|
if: >
|
||||||
|
steps.check-bluetooth-files.outputs.any_changed == 'true'
|
||||||
|
|| steps.check-networking-files.outputs.any_changed == 'true'
|
||||||
|
|| steps.check-common-files.outputs.any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
export BSIM_VERSION=$( west list bsim -f {sha} )
|
||||||
|
echo "Manifest points to bsim sha $BSIM_VERSION"
|
||||||
|
cd /opt/bsim_west/bsim
|
||||||
|
git fetch -n origin ${BSIM_VERSION}
|
||||||
|
git config --global advice.detachedHead false
|
||||||
|
git checkout ${BSIM_VERSION}
|
||||||
|
west update
|
||||||
|
make everything -s -j 8
|
||||||
|
|
||||||
- name: Run Bluetooth Tests with BSIM
|
- name: Run Bluetooth Tests with BSIM
|
||||||
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
|
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue