From 70470ffa453482f359f9270ee7909bb161c0fb86 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 3 Dec 2020 10:49:15 -0800 Subject: build-system: configure git when running GitHub Action In order to apply the patches for Kirigami, git insists on having a valid user name and email. Also, don't build the mobile app when preparing the AppImage. That build already takes way too long and we test this in a few other actions. Signed-off-by: Dirk Hohndel --- .github/workflows/android.yml | 2 ++ .github/workflows/linux-eoan-5.12.yml | 3 ++- .github/workflows/linux-groovy-5.14.yml | 3 ++- .github/workflows/mac.yml | 3 ++- .github/workflows/scripts/linux-in-container-build.sh | 6 ------ 5 files changed, 8 insertions(+), 9 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0e05b3195..c367bcff1 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -30,5 +30,7 @@ jobs: ln -s /android/platforms . ln -s /android/tools . ls -l + git config --global user.email "ci@subsurface-divelog.org" + git config --global user.name "Subsurface CI" bash -x ./subsurface/packaging/android/qmake-build.sh diff --git a/.github/workflows/linux-eoan-5.12.yml b/.github/workflows/linux-eoan-5.12.yml index 337ffe70f..3cec1cd46 100644 --- a/.github/workflows/linux-eoan-5.12.yml +++ b/.github/workflows/linux-eoan-5.12.yml @@ -39,7 +39,8 @@ jobs: run: | echo "--------------------------------------------------------------" echo "building mobile" - + git config --global user.email "ci@subsurface-divelog.org" + git config --global user.name "Subsurface CI" cd .. bash -e -x subsurface/scripts/build.sh -mobile diff --git a/.github/workflows/linux-groovy-5.14.yml b/.github/workflows/linux-groovy-5.14.yml index ef5f07efc..9d6ee38b1 100644 --- a/.github/workflows/linux-groovy-5.14.yml +++ b/.github/workflows/linux-groovy-5.14.yml @@ -39,7 +39,8 @@ jobs: run: | echo "--------------------------------------------------------------" echo "building mobile" - + git config --global user.email "ci@subsurface-divelog.org" + git config --global user.name "Subsurface CI" cd .. bash -e -x subsurface/scripts/build.sh -mobile diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 512ed76ab..c945d568e 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -28,7 +28,8 @@ jobs: export PATH=$QT_ROOT/bin:$PATH export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake DIR=$(pwd) - + git config --global user.email "ci@subsurface-divelog.org" + git config --global user.name "Subsurface CI" # first build Subsurface-mobile to ensure this didn't get broken bash -e -x ./subsurface/scripts/build.sh -mobile diff --git a/.github/workflows/scripts/linux-in-container-build.sh b/.github/workflows/scripts/linux-in-container-build.sh index e2c4a3373..fedf1d6eb 100644 --- a/.github/workflows/scripts/linux-in-container-build.sh +++ b/.github/workflows/scripts/linux-in-container-build.sh @@ -17,12 +17,6 @@ apt install -y libbluetooth-dev libmtp-dev cp -a /appdir /__w/subsurface/ cp -a /install-root /__w/subsurface/ -echo "--------------------------------------------------------------" -echo "building mobile" - -# first make sure that no one broke Subsurface-mobile -bash -e -x subsurface/scripts/build.sh -mobile -quick - echo "--------------------------------------------------------------" echo "building desktop" -- cgit v1.2.3-70-g09d2