Skip to content

Commit

Permalink
ci: enable python pip caching
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Jan 6, 2024
1 parent cb9add2 commit ca276df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
- name: install gcovr 5.0
run: |
pip install gcovr==5.0 # 5.1 is not supported
Expand Down Expand Up @@ -59,17 +60,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR head
ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR head
- name: Compile
run: |
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }}
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }}
- name: Test
run: |
cd build
ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure
cd build
ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure
mac_os_build:
name: Mac OS Build, Test
Expand All @@ -81,10 +81,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR head
- name: Compile
run: |
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }}
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }}
- name: Test
run: |
cd build
ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure
cd build
ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "pip"
- name: Install lint tool
run: |
python -m pip install --upgrade pip
Expand All @@ -43,4 +44,4 @@ jobs:
- name: Generate Doxygen Documentation
uses: mattnotmitt/doxygen-action@edge
with:
doxyfile-path: 'doxyfile'
doxyfile-path: "doxyfile"
5 changes: 3 additions & 2 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: "3.9"
cache: "pip"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Install AgIsoStack library in PlatformIO
run: pio pkg install -g -l ./
- name: Build PlatformIO examples
run: pio run -d ${{ matrix.example }} -e local_agisostack
run: pio run -d ${{ matrix.example }} -e local_agisostack

0 comments on commit ca276df

Please sign in to comment.