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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-12-03 10:49:15 -08:00
parent a7d6736665
commit 70470ffa45
5 changed files with 8 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"