Skip to content

Commit 24af853

Browse files
committed
Add action to create bom
1 parent 94ae2ac commit 24af853

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/make-bom.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Make BoM
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- name: Set up Python 3.10
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: '3.10'
14+
- uses: actions/[email protected]
15+
- name: Setup NDK
16+
run: |
17+
ANDROID_ROOT=/usr/local/lib/android
18+
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
19+
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
20+
ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v2
23+
with:
24+
java-version: 11
25+
distribution: temurin
26+
cache: gradle
27+
28+
- name: Build
29+
run: |
30+
./ci/run.sh \
31+
--artifact-target-dir=./logs/artifacts \
32+
--artifact-patterns=bom.zip \
33+
--artifact-patterns=bomReleaseNotes.md \
34+
--artifact-patterns=recipeVersionUpdate.txt \
35+
gradle \
36+
-- \
37+
--build-cache \
38+
buildBomZip
39+
40+
- name: Upload generated artifacts
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: artifacts
44+
path: ./logs/artifacts/
45+
retention-days: 5

0 commit comments

Comments
 (0)