-
Notifications
You must be signed in to change notification settings - Fork 3.7k
45 lines (45 loc) · 1.17 KB
/
build.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
name: facebook/fresco/build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print pre-setup debug info
run: ./ci/print-debug-info.sh
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r27b
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: |
11
17
cache: gradle
- name: Print post-setup debug info
run: |
./ci/print-debug-info.sh
echo "Printing Gradle Wrapper version"
./gradlew --version
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Build & run tests
run: ./ci/build-and-test.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Copy Results
run: |
mkdir -p ./gh_actions/test-results/junit
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ./gh_actions/test-results/junit \;
- uses: actions/upload-artifact@v4
with:
path: "./gh_actions/test-results"