-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (81 loc) · 3.03 KB
/
build-test.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
# This is a basic workflow to help you get started with Actions
name: Build and Test Jector
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-jector:
# runner images with architectures (variants)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest' ]
name: Build jector
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Job
uses: actions/checkout@v3
- name: Setup Temurin-JDK-19
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Compiling jector
run: ./gradlew --console="verbose" :jector:build
- name: Compiling jector-monkey
run: ./gradlew --console="verbose" :jector-monkey:build
- name: Archive jector
uses: actions/upload-artifact@v3
with:
name: jector-snapshot
path: jector/build/libs/
test-doc-generation:
# a linux runner image with the ndk installed and llvm ready to compile android native binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest' ]
name: Generating documentation
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Job
uses: actions/checkout@v3
- name: Setup Oracle-JDK-19
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Generate javadoc for jector
run: chmod +rwx ./gradlew && ./gradlew :jector:generateJavadocJar
- name: Generate javadoc for jector-monkey
run: chmod +rwx ./gradlew && ./gradlew :jector-monkey:generateJavadocJar
test:
# runner images with architectures (variants)
runs-on: ${{ matrix.os }}
needs: build-jector
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: Testing jector on ${{ matrix.os }} for x86-64
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Job
uses: actions/checkout@v3
- name: Setup Temurin-JDK-19
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Download jector-SNAPSHOT.jar library
uses: actions/download-artifact@v3
with:
name: jector-snapshot
path: jector/build/libs/
- name: Run jector example
run: ./gradlew :jector-examples:run