2424 - run : pip install cpplint
2525 - run : cpplint --linelength 140 --filter=-legal/copyright,-runtime/int,-build/include_subdir,-readability/casting,-readability/todo,-build/include_order,-build/include_what_you_use --recursive ./inc/ ./lib/ ./src/
2626
27- pio-setup :
28- name : PlatformIO Setup
29- runs-on : ubuntu-latest
30- outputs :
31- cache-key : ${{ steps.cache-key.outputs.key }}
32- steps :
33- - uses : actions/checkout@v6
34- with :
35- token : ${{ secrets.GH_TOKEN }}
36- persist-credentials : true
37- show-progress : false
38- - name : Setup Git Credentials
39- run : |
40- git config --global credential.helper store
41- echo "https://oauth2:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials
42- - name : Setup Python
43- uses : actions/setup-python@v6
44- with :
45- python-version : 3.x
46- - name : Generate cache key
47- id : cache-key
48- run : echo "key=pio-${{ hashFiles('platformio.ini') }}" >> $GITHUB_OUTPUT
49- - name : Cache PlatformIO
50- uses : actions/cache@v4
51- with :
52- path : |
53- ~/.platformio
54- .pio
55- key : ${{ steps.cache-key.outputs.key }}
56- restore-keys : |
57- pio-
58- - name : Install PlatformIO
59- run : |
60- python -m pip install --upgrade pip
61- pip install -U platformio
62- - name : Install dependencies
63- run : platformio pkg install -e OpenPPG-CESP32S3-CAN-SP140
64-
6527 pio-test :
6628 name : PlatformIO Tests
6729 runs-on : ubuntu-latest
68- needs : pio-setup
6930 steps :
7031 - uses : actions/checkout@v6
7132 with :
@@ -80,15 +41,12 @@ jobs:
8041 uses : actions/setup-python@v6
8142 with :
8243 python-version : 3.x
83- - name : Restore PlatformIO cache
44+ - name : Cache PlatformIO
8445 uses : actions/cache@v4
8546 with :
86- path : |
87- ~/.platformio
88- .pio
89- key : ${{ needs.pio-setup.outputs.cache-key }}
90- restore-keys : |
91- pio-
47+ path : ~/.platformio
48+ key : pio-${{ hashFiles('platformio.ini') }}
49+ restore-keys : pio-
9250 - name : Install PlatformIO
9351 run : |
9452 python -m pip install --upgrade pip
9957 pio-build :
10058 name : PlatformIO Build
10159 runs-on : ubuntu-latest
102- needs : pio-setup
10360 steps :
10461 - uses : actions/checkout@v6
10562 with :
@@ -114,15 +71,12 @@ jobs:
11471 uses : actions/setup-python@v6
11572 with :
11673 python-version : 3.x
117- - name : Restore PlatformIO cache
74+ - name : Cache PlatformIO
11875 uses : actions/cache@v4
11976 with :
120- path : |
121- ~/.platformio
122- .pio
123- key : ${{ needs.pio-setup.outputs.cache-key }}
124- restore-keys : |
125- pio-
77+ path : ~/.platformio
78+ key : pio-${{ hashFiles('platformio.ini') }}
79+ restore-keys : pio-
12680 - name : Install PlatformIO
12781 run : |
12882 python -m pip install --upgrade pip
0 commit comments