-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (48 loc) · 1.35 KB
/
pull_request_build.yml
File metadata and controls
61 lines (48 loc) · 1.35 KB
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
name: Pull Request Build
on:
pull_request:
branches: [ "main" ]
# Cancel currently running workflow for same PR
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install cookiecutter
run: python3 -m pip install --user cookiecutter
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run cookiecutter
run: |
cd ..
cookiecutter Android_Project_Setup \
--no-input \
app_name="Simform" \
repo_name="Simform" \
package_name="com.simform.app" \
appcenter_key="" \
package_dir="com/simform/app" \
copyright_year_name="2023 Simform" \
include_testing="n" \
include_room_db="y" \
launch_studio="false"
- name: Run settings setup.sh
run: |
cd ../Simform/settings
chmod +x setup.sh
./setup.sh
- name: Build Project
run: |
cd ../Simform
chmod +x gradlew
./gradlew assembleDevDebug