Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
grassjelly authored Nov 13, 2023
1 parent ce57175 commit f2872ac
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/reusable-platformio-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.reference }}
path: repo

# Cache dependencies to speed up workflows
- uses: actions/cache@v3
Expand All @@ -36,16 +37,13 @@ jobs:
~/.platformio/.cache
key: ${{ runner.os }}-pio

- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Install environment
uses: ./repo/.github/actions/platformio-env

- name: Build Calibration
run: |
cd calibration
export PATH=$PATH:~/.platformio/penv/bin
cd repo/calibration
pio run
Expand Down Expand Up @@ -93,41 +91,25 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.reference }}
path: repo

# speed up workflows by caching dependencies
# Cache dependencies to speed up workflows
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install PlatformIO Core
run: pip3 install --upgrade platformio

- name: Initialize Platformio, manually create .platformio and penv if needed
run: |
pio --version
if [ ! -d ~/.platformio ]; then
mkdir ~/.platformio
fi
- name: Install environment
uses: ./repo/.github/actions/platformio-env

if [ ! -d ~/.platformio/penv ]; then
cd ~/.platformio
python3 -m venv penv
fi
- name: Install catkin_pkg
run: pip install --upgrade catkin_pkg

# Build the firmware for each environment in parallel
- name: Build Firmware
env:
ROS_DISTRO: ${{ inputs.ros_distro }}
shell: bash
run: |
cd firmware
export PATH=$PATH:~/.platformio/penv/bin
cd repo/firmware
pio run -e ${{ matrix.env }}

0 comments on commit f2872ac

Please sign in to comment.