ophub/flippy-openwrt-actions

脚本执行过程中下载内核时出错

signigelchan opened this issue · 1 comments

Device Information | 设备信息

  • SOC: [s905d]
  • Model [Phicomm N1]

OpenWrt Version | 系统版本

  • Kernel Version: [5.10.176]
  • Release: [official]

Describe the bug | 问题描述

Actions 工作流引入 ophub/flippy-openwrt-actions@main ,指定了 KERNEL_VERSION_NAMEKERNEL_AUTO_LATEST ,执行工作流时,发现默认也走了 RK3588 的内核下载,导致出错;具体配置如下:

- name: Armvirt firmware packit
  uses: ophub/flippy-openwrt-actions@main
  if: steps.compile.outputs.status == 'success' && env.ARMVIRT_PACKIT == 'true' && !cancelled()
  env:
    OPENWRT_ARMVIRT: openwrt/bin/targets/*/*/*.tar.gz
    KERNEL_REPO_URL: ${{ inputs.packit_kernel_repo }}
    KERNEL_VERSION_NAME: ${{ inputs.packit_kernel_version }}
    KERNEL_AUTO_LATEST: false
    PACKAGE_SOC: ${{ inputs.packit_soc }}
    GZIP_IMGS: .gz
    WHOAMI: ${{ inputs.packit_whoami }}
    OPENWRT_VER: ${{ inputs.packit_owrt_ver }}

- name: Upload packit armvirt firmware
  uses: actions/upload-artifact@v3
  if: > 
    ${{ env.PACKAGED_STATUS }} != '' && ${{ env.PACKAGED_STATUS }} == 'success' &&
    ${{ env.PACKAGED_OUTPUTPATH }} != '' && !cancelled()
  with:
    name: OpenWrt_packit_armvirt${{ env.FILE_DATE }}
    path: ${{ env.PACKAGED_OUTPUTPATH }}/*

Please provide a detailed description of the issue and, if necessary, attach a screenshot.

1
2
3

ophub commented

错误的原因你已经圈好了,如果你使用KERNEL_AUTO_LATEST: false,要自己去仓库看有没有内核。rk3588里没有你指定的5.10.1内核,所以下载失败了。

一般都设置ture,自动使用最新内核。