-
-
Notifications
You must be signed in to change notification settings - Fork 31
170 lines (141 loc) · 4.8 KB
/
release.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Release
run-name: "Release ${{ github.event.release.tag_name }}"
on:
release:
types: [ published ]
env:
BUILD_TYPE: Release
jobs:
release-webos:
name: Release (webOS)
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Download ares-cli-rs
uses: robinraju/[email protected]
with:
repository: "webosbrew/ares-cli-rs"
latest: true
fileName: "ares-package_*.deb"
out-file-path: "temp"
- name: Download Manifest Generator
uses: robinraju/[email protected]
with:
repository: "webosbrew/dev-toolbox-cli"
latest: true
fileName: "webosbrew-toolbox-gen-manifest_*.deb"
out-file-path: "temp"
- name: Update Packages
run: sudo apt-get -yq update
- name: Install webOS CLI
run: sudo apt-get install ./temp/*.deb
- name: webOS Build
uses: ./.github/actions/build-webos
with:
build-type: RelWithDebInfo
- name: Create Release (webOS)
id: create_release_webos
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: dist/*.ipk,dist/*_dbgsym.tar.gz,dist/*.manifest.json
release-raspi:
name: Release (Raspberry Pi ${{ matrix.arch }})
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [ armhf, arm64 ]
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Update Packages
shell: bash
run: sudo apt-get -yq update
- name: Prepare Sysroot
id: pi-sysroot
uses: mariotaku/[email protected]
with:
release: bullseye
packages: ${{github.workspace}}/scripts/raspi/sysroot-packages.list
arch: ${{ matrix.arch }}
- name: Install Build Tools
shell: bash
run: sudo apt-get -y -qq install crossbuild-essential-${{ matrix.arch }} cmake gettext
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTARGET_RASPI=ON
-DCMAKE_TOOLCHAIN_FILE=${{steps.pi-sysroot.outputs.cmake-toolchain}}
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Package
working-directory: ${{github.workspace}}/build
run: cpack
- name: Create Release (Raspberry Pi)
id: create_release_raspi
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: build/*.deb
release-steamlink:
name: Release (Steam Link)
runs-on: ubuntu-22.04
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Steam Link SDK
uses: ./.github/actions/steamlink-sdk
with:
path: .steamlink-sdk
- name: Install Build Tools
shell: bash
run: sudo apt-get -y -qq install cmake gettext
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: |
source ${{github.workspace}}/.steamlink-sdk/setenv.sh
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
env:
CMAKE_TOOLCHAIN_FILE: ${{github.workspace}}/.steamlink-sdk/toolchain/steamlink-toolchain.cmake
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: |
source ${{github.workspace}}/.steamlink-sdk/setenv.sh
cmake --build . --config $BUILD_TYPE
cpack
- name: Create Release (Steam Link)
id: create_release_steamlink
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
allowUpdates: true
omitNameDuringUpdate: true
omitBody: true
omitPrereleaseDuringUpdate: true
artifacts: dist/moonlight-tv_*_steamlink.*