Skip to content

Commit

Permalink
Install additional python requirements at build/CI time (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
atvrager authored Mar 20, 2023
1 parent 1dde790 commit c1c3500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
- name: Build
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja .
python.exe -m pip install -r ${{github.workspace}}/scripts/requirements.txt
python.exe -m pip install -r ${{github.workspace}}/arduino/requirements.txt
python.exe ${{github.workspace}}/arduino/package.py --output_dir ${{github.workspace}}/build --flashtool
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:

- name: Setup Environment
run: |
python -m pip install -r ${{ github.workspace }}/scripts/requirements.txt
python -m pip install -r ${{ github.workspace }}/arduino/requirements.txt
- name: Build
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ EOF
fi

if [[ ! -z ${build_arduino} ]]; then
python3 -m pip install -r ${SCRIPT_DIR}/scripts/requirements.txt
python3 -m pip install -r ${SCRIPT_DIR}/arduino/requirements.txt
if [[ -z ${skip_arduino_flashtool} ]]; then
python3 ${PACKAGE_PY} --output_dir=${build_dir} --flashtool
Expand Down

0 comments on commit c1c3500

Please sign in to comment.