Skip to content

Commit 9b9f5f3

Browse files
authored
Enable api-information check on GitHub Actions (#3970)
1 parent 7261fd5 commit 9b9f5f3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/api-information.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: API Information
2+
3+
on: [ pull_request ]
4+
5+
jobs:
6+
check:
7+
if: github.event.pull_request.head.repo.full_name == github.repository
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 2
13+
submodules: true
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: 11
18+
distribution: temurin
19+
cache: gradle
20+
- name: Set up NDK 21.4.7075529
21+
run: |
22+
ANDROID_ROOT=/usr/local/lib/android
23+
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
24+
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
25+
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
26+
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
27+
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
28+
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV
29+
- name: Set up Python 3.10
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: '3.10'
33+
- name: Set up fireci
34+
run: pip3 install -e ci/fireci
35+
- name: Run api-information check
36+
run: |
37+
fireci api_information \
38+
--issue_number=${{ github.event.pull_request.number }} \
39+
--repo_name=${{ github.repository }} \
40+
--auth_token=${{ secrets.GOOGLE_OSS_BOT_TOKEN }}

0 commit comments

Comments
 (0)