-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (51 loc) · 1.47 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build image for Release channel
on:
workflow_dispatch:
env:
GH_TOKEN: ${{ github.token }}
jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate rbuild changelog
uses: radxa-repo/rbuild-changelog@main
with:
product: rock-pi-s
- name: Create empty release
id: release
uses: softprops/action-gh-release@v2
with:
tag_name: b${{ github.run_number }}
body_path: README.md
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
draft: false
prerelease: true
files: .changelog/changelog.md
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: ubuntu-latest
needs: prepare_release
strategy:
matrix:
boards: [rock-pi-s]
build_systems: [rbuild]
# distros: [debian, ubuntu]
suites: [bookworm, jammy]
flavors: [kde, cli]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload rbuild image
uses: radxa-repo/rbuild@main
if: matrix.build_systems == 'rbuild'
with:
board: ${{ matrix.boards }}
# distro: ${{ matrix.distros }}
suite: ${{ matrix.suites }}
flavor: ${{ matrix.flavors }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}