2021-03-16 12:19:16 +01:00
|
|
|
name: Build and Publish
|
2021-05-17 21:45:06 +02:00
|
|
|
on: [ pull_request ]
|
2021-03-16 12:19:16 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Test and Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# Setup Java 1.8 environment for the next steps
|
|
|
|
- name: Setup Java
|
2022-01-28 03:01:57 +01:00
|
|
|
uses: actions/setup-java@v2
|
2021-03-16 12:19:16 +01:00
|
|
|
with:
|
2022-01-28 03:01:57 +01:00
|
|
|
distribution: 'zulu'
|
2021-05-15 22:34:16 +02:00
|
|
|
java-version: 15
|
2021-03-16 12:19:16 +01:00
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
2022-11-23 02:26:55 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-03-16 12:19:16 +01:00
|
|
|
|
2021-05-15 22:34:16 +02:00
|
|
|
# Build Android application
|
|
|
|
- name: Android App
|
|
|
|
run: ./gradlew :android:build
|
|
|
|
|
|
|
|
# Build Desktop application
|
|
|
|
- name: Desktop App
|
|
|
|
run: ./gradlew :desktop:build
|
|
|
|
|
|
|
|
# Build Web application
|
|
|
|
- name: Web App
|
2021-03-16 12:19:16 +01:00
|
|
|
run: ./gradlew :web-app:build
|