This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
Build image for test channel #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
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 }}" | |
tag_name: "rsdk-t${{ github.run_number }}" | |
test-repo: true | |
timestamp: "t${{ github.run_number }}" | |
strategy: | |
matrix: | |
edition: "${{ fromJSON(needs.prepare_release.outputs.editions )}}" | |
product: | |
- "rock-5b-plus-6_1" | |
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" | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: "Check for existing releases" | |
run: | | |
TAG="rsdk-t${{ github.run_number }}" | |
if git show-ref --tags --verify --quiet "refs/tags/${TAG}"; then | |
echo "Release ${TAG} exists." | |
exit 1 | |
fi | |
- name: "Generate changelog" | |
uses: "radxa-repo/rbuild-changelog@main" | |
with: | |
product: "rock-5b-plus-6_1" | |
- id: "query" | |
name: "Query product info" | |
uses: "RadxaOS-SDK/rsdk/.github/actions/query@main" | |
with: | |
product: "rock-5b-plus-6_1" | |
- 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" | |
name: "t${{ github.run_number }} (rsdk)" | |
prerelease: true | |
tag_name: "rsdk-t${{ github.run_number }}" | |
target_commitish: "main" | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
name: "Build image for test channel" | |
"on": | |
workflow_dispatch: {} |