Skip to content

Commit

Permalink
chore: templates generated by RadxaOS-SDK/rsdk@5fdb20b
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 19, 2024
0 parents commit a20ba9b
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
updates:
- directory: "/"
package-ecosystem: "github-actions"
schedule:
interval: "daily"
version: 2
55 changes: 55 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
env:
GH_TOKEN: "${{ github.token }}"
jobs:
build:
needs: "prepare_release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Build image"
uses: "RadxaOS-SDK/rsdk/.github/actions/build@main"
with:
edition: "${{ matrix.edition }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
product: "${{ matrix.product }}"
release-id: "${{ needs.prepare_release.outputs.release_id }}"
suite: "${{ matrix.suite }}"
strategy:
matrix:
edition: "${{ fromJSON(needs.prepare_release.outputs.editions )}}"
product:
- "radxa-cm3j-rpi-cm4-io"
suite: "${{ fromJSON(needs.prepare_release.outputs.suites )}}"
prepare_release:
outputs:
editions: "${{ steps.query.outputs.editions }}"
release_id: "${{ steps.release.outputs.id }}"
suites: "${{ steps.query.outputs.suites }}"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Generate changelog"
uses: "radxa-repo/rbuild-changelog@main"
with:
product: "radxa-cm3j-rpi-cm4-io"
- id: "query"
name: "Query product info"
uses: "RadxaOS-SDK/rsdk/.github/actions/query@main"
with:
product: "radxa-cm3j-rpi-cm4-io"
- id: "release"
name: "Create empty release"
uses: "softprops/action-gh-release@v2"
with:
body_path: "README.md"
draft: false
files: ".changelog/changelog.md"
prerelease: true
tag_name: "b${{ github.run_number }}"
target_commitish: "main"
token: "${{ secrets.GITHUB_TOKEN }}"
name: "Build image for release channel"
"on":
workflow_dispatch: {}
23 changes: 23 additions & 0 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
jobs:
dependabot:
if: "github.actor == 'dependabot[bot]'"
runs-on: "ubuntu-latest"
steps:
- id: "metadata"
name: "Dependabot metadata"
uses: "dependabot/fetch-metadata@v2"
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- env:
GH_TOKEN: "${{secrets.GITHUB_TOKEN}}"
PR_URL: "${{github.event.pull_request.html_url}}"
name: "Approve a PR & Enable auto-merge for Dependabot PRs"
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
name: "Dependabot auto-merge"
"on":
pull_request: {}
permissions:
contents: "write"
pull-requests: "write"
59 changes: 59 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
env:
GH_TOKEN: "${{ github.token }}"
jobs:
build:
needs: "prepare_release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Build image"
uses: "RadxaOS-SDK/rsdk/.github/actions/build@main"
with:
edition: "${{ matrix.edition }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
product: "${{ matrix.product }}"
release-id: "${{ needs.prepare_release.outputs.release_id }}"
suite: "${{ matrix.suite }}"
test-repo: true
timestamp: "t${{ github.run_number }}"
strategy:
matrix:
edition: "${{ fromJSON(needs.prepare_release.outputs.editions )}}"
product:
- "radxa-cm3j-rpi-cm4-io"
suite: "${{ fromJSON(needs.prepare_release.outputs.suites )}}"
prepare_release:
outputs:
editions: "${{ steps.query.outputs.editions }}"
release_id: "${{ steps.release.outputs.id }}"
suites: "${{ steps.query.outputs.suites }}"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Generate changelog"
uses: "radxa-repo/rbuild-changelog@main"
with:
product: "radxa-cm3j-rpi-cm4-io"
- id: "query"
name: "Query product info"
uses: "RadxaOS-SDK/rsdk/.github/actions/query@main"
with:
product: "radxa-cm3j-rpi-cm4-io"
- id: "release"
name: "Create empty release"
uses: "softprops/action-gh-release@v2"
with:
body: |
This is a test build for internal development.
Only use when specifically instructed by Radxa support.
draft: false
files: ".changelog/changelog.md"
prerelease: true
tag_name: "t${{ github.run_number }}"
target_commitish: "main"
token: "${{ secrets.GITHUB_TOKEN }}"
name: "Build image for test channel"
"on":
workflow_dispatch: {}
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Radxa CM3J Compute Module with Raspberry Pi Compute Module 4 IO Board
[![Build image for Release channel](https://github.com/radxa-build/radxa-cm3j-rpi-cm4-io/actions/workflows/build.yml/badge.svg)](https://github.com/radxa-build/radxa-cm3j-rpi-cm4-io/actions/workflows/build.yml) [![Build image for Test channel](https://github.com/radxa-build/radxa-cm3j-rpi-cm4-io/actions/workflows/test.yml/badge.svg)](https://github.com/radxa-build/radxa-cm3j-rpi-cm4-io/actions/workflows/test.yml)

## What is this?

This repo is the central location for Radxa-built system images for Radxa CM3J Compute Module with Raspberry Pi Compute Module 4 IO Board.

## What images are provided?

Please also always use [the latest release](https://github.com/radxa-build/radxa-cm3j-rpi-cm4-io/releases/latest) instead of any pre-release / test builds. Those will not be supported.

## Where is the source code?

This repository is only for hosting the GitHub workflows that build the image. As such, you will need to examine the workflow to find the builder.

## Help! Something doesn't work!

For other questions, please first take a look at [our Documentation](https://docs.radxa.com), which covers the most basic usages.

Should you have any additional questions, please visit [our forum](https://forum.radxa.com/) or [our Discord](https://rock.sh/go), and we are willing to help.

0 comments on commit a20ba9b

Please sign in to comment.