Skip to content

Commit

Permalink
Install swig depending on platform
Browse files Browse the repository at this point in the history
Signed-off-by: simonmicro <[email protected]>
  • Loading branch information
simonmicro committed May 19, 2024
1 parent 0607210 commit 22282af
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-FEATURE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
path: ~/.platformio
key: platformio-${{ runner.os }}
- name: Install swig
run: sudo apt-get update && sudo apt-get -y install swig
run: apt-get update && apt-get -y install swig
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/test-OS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,21 @@ jobs:
with:
path: ~/.platformio
key: platformio-${{ runner.os }}

- name: Install swig on Linux
if: matrix.os == 'ubuntu-latest'
run: apt-get update && apt-get -y install swig
- name: Install swig on Mac OS
if: matrix.os == 'macos-latest'
run: brew install swig

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install PlatformIO
shell: bash
run: |
apt update && apt -y install swig
python -m pip install --upgrade pip
pip install --upgrade platformio
mv include/config.h.example include/config.h
run: python -m pip install --upgrade pip && pip install --upgrade platformio
- name: Rename config
run: mv include/config.h.example include/config.h
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }}
run: python3 .github/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b debug
3 changes: 2 additions & 1 deletion .github/workflows/test-OSW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
outputs:
languages_matrix: ${{ steps.get-languages.outputs.languages_matrix }}
models_matrix: ${{ steps.get-models.outputs.models_matrix }}

build-OSW:
needs: Find-packages
runs-on: ubuntu-latest
Expand All @@ -71,7 +72,7 @@ jobs:
path: ~/.platformio
key: platformio-${{ runner.os }}
- name: Install swig
run: sudo apt-get update && sudo apt-get -y install swig
run: apt-get update && apt-get -y install swig
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 22282af

Please sign in to comment.