88 name : Gather Environments
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v4
1212 - name : Cache pip
13- uses : actions/cache@v2
13+ uses : actions/cache@v4
1414 with :
1515 path : ~/.cache/pip
1616 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
1717 restore-keys : |
1818 ${{ runner.os }}-pip-
19- - uses : actions/setup-python@v2
19+ - uses : actions/setup-python@v5
20+ with :
21+ python-version : ' 3.9'
2022 - name : Install PlatformIO
2123 run : pip install -r requirements.txt
2224 - name : Get default environments
2325 id : envs
2426 run : |
25- echo "::set-output name= environments:: $(pio project config --json-output | jq -cr '.[0][1][0][1]')"
27+ echo "environments= $(pio project config --json-output | jq -cr '.[0][1][0][1]')" >> $GITHUB_OUTPUT
2628 outputs :
2729 environments : ${{ steps.envs.outputs.environments }}
2830
@@ -32,52 +34,57 @@ jobs:
3234 runs-on : ubuntu-latest
3335 needs : get_default_envs
3436 strategy :
37+ fail-fast : false
3538 matrix :
3639 environment : ${{ fromJSON(needs.get_default_envs.outputs.environments) }}
3740 steps :
38- - uses : actions/checkout@v2
41+ - uses : actions/checkout@v4
3942 - name : Cache pip
40- uses : actions/cache@v2
43+ uses : actions/cache@v4
4144 with :
4245 path : ~/.cache/pip
4346 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
4447 restore-keys : |
4548 ${{ runner.os }}-pip-
4649 - name : Cache PlatformIO
47- uses : actions/cache@v2
50+ uses : actions/cache@v4
4851 with :
4952 path : ~/.platformio
5053 key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
5154 - name : Set up Python
52- uses : actions/setup-python@v2
55+ uses : actions/setup-python@v5
56+ with :
57+ python-version : ' 3.9'
5358 - name : Install PlatformIO
5459 run : pip install -r requirements.txt
5560 - name : Build firmware
5661 env :
5762 WLED_RELEASE : True
5863 run : pio run -e ${{ matrix.environment }}
59- - uses : actions/upload-artifact@v2
64+ - uses : actions/upload-artifact@v4
6065 with :
6166 name : firmware-${{ matrix.environment }}
6267 path : |
6368 build_output/firmware/*.bin
6469 build_output/firmware/*.gz
65- - uses : actions/upload-artifact@v2
70+ - uses : actions/upload-artifact@v4
6671 if : startsWith(github.ref, 'refs/tags/')
6772 with :
68- name : firmware-release
73+ name : firmware-release-${{ matrix.environment }}
6974 path : build_output/release/*.bin
7075 release :
7176 name : Create Release
7277 runs-on : ubuntu-latest
7378 needs : [get_default_envs, build]
7479 if : startsWith(github.ref, 'refs/tags/')
7580 steps :
76- - uses : actions/download-artifact@v2
81+ - uses : actions/download-artifact@v4
7782 with :
7883 name : firmware-release
84+ pattern : firmware-release-*
85+ merge-multiple : true
7986 - name : Create draft release
80- uses : softprops/action-gh-release@v1
87+ uses : softprops/action-gh-release@v2
8188 with :
8289 draft : True
8390 files : |
0 commit comments