Skip to content

Merge pull request #114 from Ken-Vamrs/main #860

Merge pull request #114 from Ken-Vamrs/main

Merge pull request #114 from Ken-Vamrs/main #860

Workflow file for this run

name: Build
on:
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch:
merge_group:
push:
branches:
- main
paths-ignore:
- '**.md'
- .gitignore
- 'docs/**'
- 'theme/**'
- 'po/**'
- book.toml
- .github/workflows/docs.yaml
- container/Dockerfile
- .github/workflows/deploy-image.yml
pull_request:
paths-ignore:
- '**.md'
- .gitignore
- 'docs/**'
- 'theme/**'
- 'po/**'
- book.toml
- .github/workflows/docs.yaml
- container/Dockerfile
- .github/workflows/deploy-image.yml
jobs:
query:
runs-on: ubuntu-latest
outputs:
linux: ${{ steps.query.outputs.linux }}
u-boot: ${{ steps.query.outputs.u-boot }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Query available board configs
id: query
run: |
echo "linux=$(./bsp json profile linux)" >> $GITHUB_OUTPUT
echo "u-boot=$(./bsp json profile u-boot)" >> $GITHUB_OUTPUT
build_u-boot:
needs: query
runs-on: ubuntu-latest
strategy:
matrix:
targets: [ u-boot ]
profiles: ${{fromJSON(needs.query.outputs.u-boot)}}
steps:
- name: Build
uses: radxa-repo/bsp@main
with:
target: ${{ matrix.targets }}
edition: ${{ matrix.profiles }}
artifacts: true
build_linux:
needs: query
runs-on: ubuntu-latest
strategy:
matrix:
targets: [ linux ]
profiles: ${{fromJSON(needs.query.outputs.linux)}}
steps:
- name: Build
uses: radxa-repo/bsp@main
with:
target: ${{ matrix.targets }}
edition: ${{ matrix.profiles }}
artifacts: true