-
Notifications
You must be signed in to change notification settings - Fork 52
58 lines (54 loc) · 1.63 KB
/
generative_api_examples.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
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
#
# This workflow will run nightly or when triggered from PR comment
name: Generative API Examples
on:
workflow_call:
inputs:
trigger-sha:
required: true
type: string
jobs:
check-examples:
runs-on:
labels: Linux_runner_8_core
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: bazel-contrib/[email protected]
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: false
# Share repository cache between workflows.
repository-cache: false
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r21e
add-to-path: false
- uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
- uses: android-actions/setup-android@v3
- run: |
sdkmanager "build-tools;30.0.3" "platform-tools"
sdkmanager "platforms;android-30" "extras;android;m2repository"
- uses: actions/checkout@v3
with:
ref: ${{ inputs.trigger-sha }}
- name: Install python dependencies
run: |
pip3 install numpy
- name: Build
run: |
ci/test_examples_build.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}