Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian authored Jun 1, 2023
1 parent e4f5ab0 commit 9d2b0cb
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 23 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
name: Monthly build
name: Build image for Release channel
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'

jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get current time
uses: josStorer/get-current-time@v2
id: time
with:
format: 'YYYYMMDD-HHmm'
- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.time.outputs.formattedTime }}
tag_name: b${{ github.run_number }}
body_path: README.md
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Build image for Test channel
on:
workflow_dispatch:

jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
with:
tag_name: test-build-${{ github.run_number }}
body: |
This is a test build for internal development.
Only use when specifically instructed by Radxa support.
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
draft: false
prerelease: true
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: ubuntu-latest
needs: prepare_release
strategy:
matrix:
boards: [radxa-nx5-io]
build_systems: [rbuild]
distros: [debian, ubuntu]
flavors: [kde, cli]
exclude:
- build_systems: debos
distros: debian
flavors: cli
- build_systems: debos
distros: ubuntu
flavors: kde
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Upload Armbian image
uses: radxa/armbian-compile-action@main
if: matrix.build_systems == 'armbian'
with:
board: ${{ matrix.boards }}
distro: ${{ matrix.distros }}
flavor: ${{ matrix.flavors }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload debos-radxa image
uses: radxa/debos-build-action@main
if: matrix.build_systems == 'debos'
with:
board: radxa-nx5
distro: ${{ matrix.distros }}
flavor: ${{ matrix.flavors }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload rbuild image
uses: radxa-repo/rbuild@main
if: matrix.build_systems == 'rbuild'
with:
board: ${{ matrix.boards }}
distro: ${{ matrix.distros }}
flavor: ${{ matrix.flavors }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test-repo: true
timestamp: t${{ github.run_number }}
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,10 @@

This repo is the central location for Radxa-built system images for Radxa NX5 IO Board.

Not all images are officially supported by Radxa. Some of them are only provided as-is with no warranty. Please read below for detailed explanations.

## What images are provided?

Currently the following images are provided:
* Radxa [`debos-radxa`](https://github.com/radxa/debos-radxa) images (currently supported)
* Radxa [`rbuild`](https://github.com/radxa-repo/rbuild) images (currently testing)

`debos-radxa` images contain the build time in the file name, while `rbuild` images have a fixed file name across releases. They have similar file name format as `rbuild` is intended to replace `debos-radxa`. Once we deem `rbuild` is production-ready we will cease to produce `debos-radxa` images to avoid confusion.

## Is there any other options?

Please visit [our Wiki](https://wiki.radxa.com) for more download options.

## Where can I download the Radxa image?

Every month new images are [built](https://github.com/radxa-build/radxa-nx5-io/actions/workflows/build.yml) and [published](https://github.com/radxa-build/radxa-nx5-io/releases) as pre-releases, which serve as release candidates (RC). Radxa will periodically select an RC for additional testing, and once it passes those tests, promote it as an officially supported release. This is why you are always recommended to use [the latest release](https://github.com/radxa-build/radxa-nx5-io/releases/latest).

## Help! Something doesn't work!

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

0 comments on commit 9d2b0cb

Please sign in to comment.