3535 PROJECT_PATH : ${{ github.workspace }}/Projects/${{ matrix.project }}
3636 steps :
3737 - name : Checkout Target Project
38- uses : actions/checkout@v2
38+ uses : actions/checkout@v4
3939 with :
4040 path : ${{ github.workspace }}
4141 - name : Checkout submodules
@@ -59,11 +59,13 @@ jobs:
5959 if : ${{ steps.cache.outputs.cache-hit != 'true' }}
6060 run : |
6161 mkdir -p ~/cache
62- wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
62+ pushd $HOME
63+ wget -O "en.${IDE_PKG_NAME}.sh.zip" "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
6364 unzip en.${IDE_PKG_NAME}.sh.zip
6465 chmod +x ${IDE_PKG_NAME}.sh
6566 ./${IDE_PKG_NAME}.sh --tar -xf ./${IDE_PKG_NAME}.tar.gz
6667 mv ${IDE_PKG_NAME}.tar.gz ~/cache/
68+ popd
6769 - name : Extract IDE
6870 run : |
6971 mkdir -p STM32CubeIDE
8587 mkdir -p artifacts
8688 rsync -avzh --ignore-missing-args Projects/${{ matrix.project }}/Debug/*.{hex,bin,elf,map,list,sh,ld} artifacts/
8789 - name : Upload Build Artifacts
88- uses : actions/upload-artifact@v3
90+ uses : actions/upload-artifact@v4
8991 with :
9092 name : linux_${{ matrix.project }}
9193 path : |
@@ -112,7 +114,7 @@ jobs:
112114 shell : bash
113115 run : git config --system core.longpaths true
114116 - name : Checkout Target Project
115- uses : actions/checkout@v2
117+ uses : actions/checkout@v4
116118 with :
117119 path : ${{ github.workspace }}
118120 - name : Checkout submodules
@@ -152,9 +154,11 @@ jobs:
152154 run : |
153155 export PATH="$(realpath ~/scoop)/shims:${PATH}"
154156 mkdir -p ~/cache
155- wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
157+ pushd $HOME
158+ wget -O "en.${{ matrix.ide_pkg_name }}.exe.zip" "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
156159 7z x en.${{ matrix.ide_pkg_name }}.exe.zip
157160 mv ${{ matrix.ide_pkg_name }}.exe ~/cache/${{ matrix.ide_pkg_name }}.exe
161+ popd
158162 - name : Extract IDE
159163 shell : bash
160164 run : |
@@ -180,7 +184,7 @@ jobs:
180184 done
181185
182186 - name : Upload Build Artifacts
183- uses : actions/upload-artifact@v3
187+ uses : actions/upload-artifact@v4
184188 with :
185189 name : windows_${{ matrix.project }}
186190 path : |
0 commit comments