Skip to content

Commit

Permalink
Add build pipeline (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
metinkale38 authored Dec 25, 2023
1 parent da56f63 commit f16a719
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 47 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/androidci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build with FDroid Flavor

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for ci_build.sh
run: chmod +x ci_build.sh
- name: Build with ci_build.sh
run: ./ci_build.sh
46 changes: 0 additions & 46 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 3 additions & 0 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ else
cd open-prayer-times
chmod +x gradlew
fi
echo "org.gradle.daemon=false" >> gradle.properties
./gradlew publishToMavenLocal --no-daemon
cd ..

Expand All @@ -35,5 +36,7 @@ sed -e '/crashlytics/ s/^\/*/\/\//' -i build.gradle

# build project
echo "Build project"
echo "org.gradle.daemon=false" >> gradle.properties
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m" >> gradle.properties
chmod +x gradlew
./gradlew assembleFdroid --no-daemon
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonTransitiveRClass=false

0 comments on commit f16a719

Please sign in to comment.