-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (37 loc) · 1.18 KB
/
gradle_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
# This workflow ensures the building step works
#
# @author Armin Schnabel
# @version 1.0.3
# @since 5.0.0
name: Gradle Build
on:
push:
branches:
- 'release-6'
pull_request:
branches:
- 'release-6'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Create empty truststore file
run: |
# When no truststore is required by the server we create an empty file or else the build fails
mkdir -p synchronization/src/main/res/raw
touch synchronization/src/main/res/raw/truststore.jks
- name: Add gradle.properties
run: |
# Use a personal read token to install the Cyface Utils package
cp gradle.properties.template gradle.properties
echo "githubUser=${{ secrets.GH_READ_ACCOUNT }}" >> gradle.properties
echo "githubToken=${{ secrets.GH_READ_TOKEN }}" >> gradle.properties
# Executing build here on Ubuntu stack (1/10th costs of MacOS stack)
- name: Build with Gradle
run: ./gradlew build