-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (67 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build image for Release 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: b${{ github.run_number }}
body_path: README.md
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-e23]
build_systems: [rbuild]
distros: [debian, ubuntu]
flavors: [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: ${{ matrix.boards }}
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 }}