Skip to content
Merged
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
PROJECT_PATH: ${{ github.workspace }}/Projects/${{ matrix.project }}
steps:
- name: Checkout Target Project
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}
- name: Checkout submodules
Expand All @@ -59,11 +59,13 @@ jobs:
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
mkdir -p ~/cache
pushd $HOME
wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
unzip en.${IDE_PKG_NAME}.sh.zip
chmod +x ${IDE_PKG_NAME}.sh
./${IDE_PKG_NAME}.sh --tar -xf ./${IDE_PKG_NAME}.tar.gz
mv ${IDE_PKG_NAME}.tar.gz ~/cache/
popd
- name: Extract IDE
run: |
mkdir -p STM32CubeIDE
Expand All @@ -85,7 +87,7 @@ jobs:
mkdir -p artifacts
rsync -avzh --ignore-missing-args Projects/${{ matrix.project }}/Debug/*.{hex,bin,elf,map,list,sh,ld} artifacts/
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux_${{ matrix.project }}
path: |
Expand All @@ -112,7 +114,7 @@ jobs:
shell: bash
run: git config --system core.longpaths true
- name: Checkout Target Project
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}
- name: Checkout submodules
Expand Down Expand Up @@ -152,9 +154,11 @@ jobs:
run: |
export PATH="$(realpath ~/scoop)/shims:${PATH}"
mkdir -p ~/cache
pushd $HOME
wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
7z x en.${{ matrix.ide_pkg_name }}.exe.zip
mv ${{ matrix.ide_pkg_name }}.exe ~/cache/${{ matrix.ide_pkg_name }}.exe
popd
- name: Extract IDE
shell: bash
run: |
Expand All @@ -180,7 +184,7 @@ jobs:
done

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows_${{ matrix.project }}
path: |
Expand Down