Commit 769cea57 authored by wukongdaily's avatar wukongdaily
Browse files

在release中新增固件的同名sha256哈希值文件 方便做文件完整性校验

parent 353e9ad7
......@@ -54,6 +54,15 @@ jobs:
-e INCLUDE_DOCKER=$include_docker \
immortalwrt/imagebuilder:mediatek-filogic-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/mediatek/filogic/*.bin ${{ github.workspace }}
for file in *.bin; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
......@@ -78,7 +87,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-GL-iNet
files: ${{ github.workspace }}/bin/targets/mediatek/filogic/*.bin
files: |
${{ github.workspace }}/*.bin
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
......@@ -46,6 +46,14 @@ jobs:
immortalwrt/imagebuilder:rockchip-armv8-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/rockchip/armv8/*.img.gz ${{ github.workspace }}
for file in *.img.gz; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create GitHub Release Info
uses: softprops/action-gh-release@v2.1.0
with:
......@@ -61,7 +69,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-23.05.4
files: ${{ github.workspace }}/bin/targets/rockchip/armv8/*.img.gz
files: |
${{ github.workspace }}/*.img.gz
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
......@@ -87,6 +87,13 @@ jobs:
-e ROOTFS_PARTSIZE=$rootfs_partsize \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/rockchip/armv8/*.img.gz ${{ github.workspace }}
for file in *.img.gz; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create GitHub Release Info
uses: softprops/action-gh-release@v2.1.0
......@@ -103,7 +110,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild
files: ${{ github.workspace }}/bin/targets/rockchip/armv8/*.img.gz
files: |
${{ github.workspace }}/*.img.gz
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......@@ -65,6 +65,15 @@ jobs:
-e ROOTSIZE=$size \
immortalwrt/imagebuilder:sunxi-cortexa53-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/sunxi/cortexa53/*squashfs-sdcard.img.gz ${{ github.workspace }}
for file in *.img.gz; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
......@@ -89,7 +98,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-sunxi-cortexa53
files: ${{ github.workspace }}/bin/targets/sunxi/cortexa53/*squashfs-sdcard.img.gz
files: |
${{ github.workspace }}/*.img.gz
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
......@@ -67,6 +67,15 @@ jobs:
-e ROOTSIZE=$size \
immortalwrt/imagebuilder:sunxi-cortexa53-openwrt-24.10 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/sunxi/cortexa53/*squashfs-sdcard.img.gz ${{ github.workspace }}
for file in *.img.gz; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
......@@ -91,7 +100,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-sunxi-cortexa53
files: ${{ github.workspace }}/bin/targets/sunxi/cortexa53/*squashfs-sdcard.img.gz
files: |
${{ github.workspace }}/*.img.gz
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
......@@ -49,6 +49,12 @@ jobs:
immortalwrt/imagebuilder:x86-64-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/x86/64/immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz ${{ github.workspace }}
sha256sum immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz > immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz.sha256
sha256sum -c immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz.sha256
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
......@@ -73,7 +79,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-x86-64
files: ${{ github.workspace }}/bin/targets/x86/64/immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz
files: |
${{ github.workspace }}/immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz
${{ github.workspace }}/immortalwrt-23.05.4-x86-64-generic-squashfs-combined-efi.img.gz.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......
......@@ -48,6 +48,14 @@ jobs:
immortalwrt/imagebuilder:x86-64-openwrt-24.10 /bin/bash /home/build/immortalwrt/build.sh
done
- name: Generate Firmware SHA-256
run: |
cp ${{ github.workspace }}/bin/targets/x86/64/*squashfs-combined-efi.img.gz ${{ github.workspace }}
for file in *squashfs-combined-efi.img.gz; do
sha256sum "$file" > "$file.sha256"
sha256sum -c "$file.sha256"
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
......@@ -72,7 +80,9 @@ jobs:
uses: softprops/action-gh-release@v2.1.0
with:
tag_name: Autobuild-x86-64
files: ${{ github.workspace }}/bin/targets/x86/64/*squashfs-combined-efi.img.gz
files: |
${{ github.workspace }}/*squashfs-combined-efi.img.gz
${{ github.workspace }}/*.sha256
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment