Build all target #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build all target | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
openwrt_tag: | ||
type: string | ||
jobs: | ||
setup: | ||
name: Setup | ||
runs-on: self-hosted | ||
outputs: | ||
targets: ${{ steps.find_targets.outputs.targets }} | ||
targets_subtargets: ${{ steps.find_targets.outputs.targets_subtargets }} | ||
openwrt_tag: ${{ steps.set_env.outputs.openwrt_tag }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set env | ||
id: set_env | ||
run: | | ||
openwrt_tag=${{ inputs.openwrt_tag }} | ||
if [ -z "${openwrt_tag}" ];then | ||
openwrt_tag = $(curl -sL https://github.com/openwrt/openwrt | sed -n 's/.*\/openwrt\/openwrt\/releases\/tag\/\(.*\)">/\1/p') | ||
fi | ||
echo "openwrt_tag=${openwrt_tag}" >> "$GITHUB_OUTPUT" | ||
- name: Set targets | ||
id: find_targets | ||
run: python3 -B ./.github/workflows/scripts/get_targets.py | while read v;do echo "$v" >> "$GITHUB_OUTPUT"; done | ||
build: | ||
Check failure on line 32 in .github/workflows/build-all.yml GitHub Actions / Build all targetInvalid workflow file
|
||
name: Build target | ||
needs: setup | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{fromJson(needs.setup.outputs.targets_subtargets)}} | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
target: ${{ matrix.target }} | ||
subtarget: ${{ matrix.subtarget }} | ||
output_image_type: ${{ matrix.output_image_type }} | ||
openwrt_tag: ${{ needs.steup.outputs.openwrt_tag }} |