Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Mar 11, 2022
0 parents commit a62bb30
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'

jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate tag name
run: |
echo "tag_name=$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=8 HEAD)" >> $GITHUB_ENV
- name: Get time
id: time
uses: nanzm/get-time-action@v1.1
with:
format: 'YYYYMMDD-HHmm'
- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.tag_name }}
name: ${{ steps.time.outputs.time }}
body_path: README.md
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
draft: false
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: ubuntu-latest
needs: prepare_release
strategy:
matrix:
BOARD: [rockpi-s]
DISTRO: [armbian]
FLAVOR: [debian, ubuntu]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Upload Armbian image
uses: radxa/armbian-compile-action@main
if: matrix.DISTRO == 'armbian'
with:
board: ${{ matrix.BOARD }}
flavor: ${{ matrix.FLAVOR }}
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.DISTRO == 'debos'
with:
board: ${{ matrix.BOARD }}
flavor: ${{ matrix.FLAVOR }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Rock Pi S
[![iso_build](https://github.com/radxa-build/rockpi-s/workflows/Build/badge.svg)](https://github.com/radxa-build/rockpi-s/actions/workflows/build.yml)

## What is this?

A collection of auto-generated images for Rock Pi S.

* Armbian images will have name started with `Armbian`.

## Where can I download the image?

Built images are uploaded to [GitHub Releases](https://github.com/radxa-build/rockpi-s/releases/latest).

## Help! Something doesn't work!

Please first take a look at [our Wiki](https://wiki.radxa.com/Home) which covers the most basics.
Should you have any additional question, please visit [our forum](https://rock.sh/go) or [our Discord](https://rock.sh/go), and we are willing to help.

0 comments on commit a62bb30

Please sign in to comment.