Copy with model-specific filename

This commit is contained in:
Takumi Sueda 2020-11-24 04:31:23 +09:00
parent 0300cf954c
commit 1c60c9a138

View File

@ -32,13 +32,19 @@ jobs:
needs: [create_release] needs: [create_release]
strategy: strategy:
matrix: matrix:
hardware: include:
- sh1 - model: sh1
- sh2 nk: edsa1exe.bin
- sh3 - model: sh2
- sh4 nk: edsa2exe.bin
- sh5 - model: sh3
- sh6 nk: edsa3exe.bin
- model: sh4
nk: edsh4exe.bin
- model: sh5
nk: edsh5exe.bin
- model: sh6
nk: edsh6exe.bin
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -51,7 +57,7 @@ jobs:
- name: Build nkbin-maker - name: Build nkbin-maker
run: make nkbin-maker run: make nkbin-maker
- name: Configure for U-Boot - name: Configure for U-Boot
run: make udefconfig-${{ matrix.hardware }} run: make udefconfig-${{ matrix.model }}
- name: Build U-Boot - name: Build U-Boot
run: make ubuild run: make ubuild
- name: Generate NK.bin - name: Generate NK.bin
@ -74,8 +80,8 @@ jobs:
mkdir release mkdir release
cp ./u-boot-brain/u-boot.bin release/u-boot.bin cp ./u-boot-brain/u-boot.bin release/u-boot.bin
cp ./u-boot-brain/u-boot.sb release/u-boot.sb cp ./u-boot-brain/u-boot.sb release/u-boot.sb
cp ./nk.bin release/nk.bin cp ./nk.bin release/${{ matrix.nk }}
cp ./linux-brain/arch/arm/boot/dts/imx28-evk.dtb release/imx28-evk.dtb cp ./linux-brain/arch/arm/boot/dts/imx28-pw${{ matrix.model }}.dtb release/imx28-pw${{ matrix.model }}.dtb
cp ./linux-brain/arch/arm/boot/zImage release/zImage cp ./linux-brain/arch/arm/boot/zImage release/zImage
zip -r release.zip release/ zip -r release.zip release/
- name: Upload release.zip - name: Upload release.zip
@ -85,5 +91,5 @@ jobs:
with: with:
upload_url: ${{ needs.create_release.outputs.upload_url }} upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: release.zip asset_path: release.zip
asset_name: ${{ matrix.hardware }}-release.zip asset_name: ${{ matrix.model }}-boot.zip
asset_content_type: application/zip asset_content_type: application/zip