Skip to content

Commit

Permalink
Add option to use experimental FW build, else use nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
ToveRumar committed Aug 22, 2024
1 parent ec9fd2d commit e48d597
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/crazylab-linux-experiment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
devices:
type: string
description: 'Devices to run the tests on.' #Format: <device1>,<device2>,...'
experimentalFW:
description: 'Flash FW from last nightly-experiment action'
type: boolean
required: false
default: false

# schedule:
# - cron: '0 6 * * *'
Expand Down Expand Up @@ -50,17 +55,26 @@ jobs:
- name: Install requirements
run: pip3 install -r requirements.txt

- name: Set FW file name
run: |
if ${{github.event.inputs.experimentalFW}} == 'true'; then
echo "FW_ACTION=nightly-experiment" >> $GITHUB_ENV
else
echo "FW_ACTION=nightly" >> $GITHUB_ENV
fi
- name: Download latest firmware files
with:
repo: bitcraze/crazyflie-release
workflow: nightly-experiment.yml
workflow: ${{env.FW_ACTION}}.yml
uses: dawidd6/action-download-artifact@v4

- name: Reset power to all devices
run: python3 management/usb-power-reset.py -a reset


- name: Upgrade devices to latest firmware
run: python3 management/program.py --file cf2-nightly-experiment/firmware-cf2-nightly-experiment.zip
run: python3 management/program.py --file cf2-${{env.FW_ACTION}}/firmware-cf2-${{env.FW_ACTION}}.zip
- name: Run test suite
env:
FILTER: ${{ github.event.inputs.filter || '""'}}
Expand Down

0 comments on commit e48d597

Please sign in to comment.