Unverified Commit 3e3b31f3 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Update test.yml

parent 87e8007b
name: release name: rockship-armv8
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -21,34 +21,17 @@ jobs: ...@@ -21,34 +21,17 @@ jobs:
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \ -v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/Makefile:/home/build/immortalwrt/target/linux/x86/Makefile" \ -v "${{ github.workspace }}/Makefile:/home/build/immortalwrt/target/linux/x86/Makefile" \
-v "${{ github.workspace }}/build.sh:/home/build/immortalwrt/build.sh" \ -v "${{ github.workspace }}/build.sh:/home/build/immortalwrt/build.sh" \
immortalwrt/imagebuilder:x86-64-openwrt-23.05.4 /bin/sh /home/build/immortalwrt/build.sh immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10 /bin/sh /home/build/immortalwrt/build.sh
- name: Locate firmware file - name: Locate firmware file
id: locate_file id: locate_file
run: | run: |
firmware_file=$(find "${{ github.workspace }}/bin" -name '*squashfs-combined-efi.img.gz' | head -n 1) firmware_file=$(find "${{ github.workspace }}/bin" -name '*squashfs-combined-efi.img.gz' | head -n 1)
if [ -z "$firmware_file" ]; then
echo "Firmware file not found!" && exit 1
fi
echo "Firmware file located at $firmware_file" echo "Firmware file located at $firmware_file"
echo "firmware_path=$firmware_file" >> $GITHUB_ENV echo "firmware_path=$firmware_file" >> $GITHUB_ENV
- name: Upload firmware
- name: Create Release uses: actions/upload-artifact@v4
id: create_release
uses: actions/create-release@v1
with:
tag_name: build-${{ github.run_number }}
release_name: "Build #${{ github.run_number }}"
body: "Automatically generated firmware build"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload firmware to Release
uses: actions/upload-release-asset@v1
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} name: firmware
asset_path: ${{ env.firmware_path }} path: ${{ env.firmware_path }}
asset_name: firmware-${{ github.run_number }}.img.gz compression-level: 0
asset_content_type: application/gzip
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