-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 2.11 KB
/
test.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
name: Build image for Test 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: radxa-cm3-io
- name: Create empty release
id: release
uses: softprops/action-gh-release@v2
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
files: .changelog/changelog.md
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: ubuntu-latest
needs: prepare_release
strategy:
matrix:
boards: [radxa-cm3-io]
build_systems: [rbuild]
distros: [debian, ubuntu]
flavors: [kde, xfce, cli]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload rbuild image
uses: radxa-repo/rbuild@main
if: matrix.build_systems == 'rbuild' && matrix.distros != 'buster'
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: test-build-${{ github.run_number }}
- name: Upload rbuild legacy image
uses: radxa-repo/rbuild@main
if: matrix.build_systems == 'rbuild' && matrix.distros == 'buster'
with:
board: ${{ matrix.boards }}
suite: ${{ matrix.distros }}
flavor: ${{ matrix.flavors }}
release-id: ${{ needs.prepare_release.outputs.release_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test-repo: true
timestamp: test-build-${{ github.run_number }}