Skip to content

Commit

Permalink
Merge pull request #1450 from grvvy/workflow_pip
Browse files Browse the repository at this point in the history
ci: use python venv for github actions firmware builds
  • Loading branch information
mossmann authored Apr 30, 2024
2 parents 22c9ff1 + 282c5bf commit 8082e69
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,23 @@ jobs:
- name: Install dependencies (macOS)
run: |
brew install dfu-util
pip3 install PyYAML
python3 -m venv environment && source environment/bin/activate
python3 -m pip install PyYAML
if: matrix.os == 'macos-latest'

- name: Install dependencies (Ubuntu)
run: |
python3 -m venv environment && source environment/bin/activate
python3 -m pip install PyYAML
sudo apt install dfu-util
if: matrix.os == 'ubuntu-latest'

- name: Build libopencm3
shell: bash
working-directory: ${{github.workspace}}/firmware/libopencm3/
run: make
run: |
source ../../environment/bin/activate
make
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/firmware/build
Expand All @@ -174,5 +179,6 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/firmware/build
shell: bash
run: cmake --build . --config Release

run: |
source ../../environment/bin/activate
cmake --build . --config Release

0 comments on commit 8082e69

Please sign in to comment.