misc: Update firmware workflow for upload/download v4.

This commit is contained in:
iabdalkader 2023-12-26 18:54:00 +01:00
parent e01415f56d
commit a1a98622c3
2 changed files with 3 additions and 6 deletions

View File

@ -57,8 +57,8 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: firmware name: ${{ matrix.target }}
path: firmware path: ${{ matrix.target }}
if-no-files-found: error if-no-files-found: error
stable-release: stable-release:
@ -74,7 +74,6 @@ jobs:
- name: '🤌 Download artifacts' - name: '🤌 Download artifacts'
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: firmware
path: firmware path: firmware
- name: '📦 Package firmware' - name: '📦 Package firmware'
@ -119,7 +118,6 @@ jobs:
- name: '🤌 Download artifacts' - name: '🤌 Download artifacts'
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: firmware
path: firmware path: firmware
- name: '📦 Package firmware' - name: '📦 Package firmware'

View File

@ -34,8 +34,7 @@ ci_build_target() {
export PATH=${TOOLCHAIN_PATH}/bin:${PATH} export PATH=${TOOLCHAIN_PATH}/bin:${PATH}
make -j$(nproc) -C src/micropython/mpy-cross make -j$(nproc) -C src/micropython/mpy-cross
make -j$(nproc) TARGET=${1} -C src make -j$(nproc) TARGET=${1} -C src
mkdir firmware mv src/build/bin ${1}
mv src/build/bin firmware/${1}
} }
######################################################################################## ########################################################################################