From af5f8b73841bd16704ad4b9d0309891a493b0ba7 Mon Sep 17 00:00:00 2001 From: Matthieu <24-artectrex@users.noreply.shinice.net> Date: Fri, 30 Aug 2024 22:02:50 +0200 Subject: [PATCH] Test java version change --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2df29b05..46e21227 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,15 +117,18 @@ fdroid build: paths: - signed/ when: always - only: - - tags + #only: + # - tags cache: key: "$CI_JOB_NAME" paths: - .android - .gradle script: - # Put the correct versionName and versionCode in the .fdroid.yml + - apt-get update + - apt-get install -y openjdk-17-jdk-headless + - update-alternatives --auto java + # Put the correct versionName and versionCode in the .fdroid.yml - sed -e "s/\${versionName}/$(./gradlew -q printVersionName)/" -e "s/\${versionCode}/$(./gradlew -q printVersionCode)/" .fdroid.yml.template > .fdroid.yml - rm .fdroid.yml.template # each `fdroid build --on-server` run expects sudo, then uninstalls it