Skip to content

Update download locations to outside repository content #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 5, 2025
Merged
Changes from all 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
16 changes: 10 additions & 6 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
wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
pushd $HOME
wget -O "en.${IDE_PKG_NAME}.sh.zip" "${{ 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
wget "${{ matrix.ide_pkg_url }}" -U "${{ matrix.user_agent }}"
pushd $HOME
wget -O "en.${{ matrix.ide_pkg_name }}.exe.zip" "${{ 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
Loading