Skip to content

Build all images

Build all images #7

name: Build all images
on:
workflow_dispatch:
inputs:
openwrt_tag:
type: string
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.get_devices.outputs.targets }}
targets_subtargets: ${{ steps.get_devices.outputs.targets_subtargets }}
targets_devices: ${{ steps.get_devices.outputs.targets_devices }}
openwrt_dir: ${{ steps.set_env.outputs.openwrt_dir }}
openwrt_tag: ${{ steps.set_env.outputs.openwrt_tag }}
openwrt_tag_version: ${{ steps.set_env.outputs.openwrt_tag_version }}
openwrt_branch: ${{ steps.set_env.outputs.openwrt_branch }}
openwrt_branch_version: ${{ steps.set_env.outputs.openwrt_branch_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
id: set_env
run: |
openwrt_dir=/data/openwrt
openwrt_tag=${{ inputs.openwrt_tag }}
openwrt_tag=${openwrt_tag:-$(curl -sL https://github.com/openwrt/openwrt | sed -n 's/.*\/openwrt\/openwrt\/releases\/tag\/\(.*\)">/\1/p')}
openwrt_tag_version=$(echo $openwrt_tag | sed 's|^v||')
openwrt_branch=$(echo ${openwrt_tag} | sed 's/^v\([0-9][0-9]\.[0-9][0-9]\)\..\+/openwrt-\1/')
openwrt_branch_version=$(echo $openwrt_branch | sed 's|openwrt-||')
echo "openwrt_dir=${openwrt_dir}" >> "$GITHUB_OUTPUT"
echo "openwrt_tag=${openwrt_tag}" >> "$GITHUB_OUTPUT"
echo "openwrt_branch=${openwrt_branch}" >> "$GITHUB_OUTPUT"
echo "openwrt_branch_version=${openwrt_branch_version}" >> "$GITHUB_OUTPUT"
- name: Get devices
id: get_devices
run: python3 -B ./.github/workflows/scripts/get_devices.py | while read v;do echo "$v" >> "$GITHUB_OUTPUT"; done
build:
name: Build
needs: setup
uses: ./.github/workflows/build-image.yml

Check failure on line 47 in .github/workflows/build-all-image.yml

View workflow run for this annotation

GitHub Actions / Build all images

Invalid workflow file

The workflow is not valid. In .github/workflows/build-all-image.yml (Line: 47, Col: 11): Error from called workflow czy21/openwrt-plugin/.github/workflows/build-image.yml@f9b16267190e1c86199b521018bbce6aa3f99a2c (Line: 26, Col: 9): Unexpected value ''
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.setup.outputs.targets_subtargets)}}
with:
target: ${{ matrix.target }}
subtarget: ${{ matrix.subtarget }}
openwrt_branch: ${{ needs.setup.outputs.openwrt_branch }}