Skip to content

Commit f3ae9be

Browse files
committed
Re-activated the GitHub action to build and publish the docker image.
Signed-off-by: Michael Keller <[email protected]>
1 parent b40c5f8 commit f3ae9be

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

.github/workflows/android-dockerimage.disabled renamed to .github/workflows/android-dockerimage

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
name: Android Docker Image CI
22

3-
# -- disabled for now, as the resulting image is HUGE and causes our
4-
# Android builds to fail
5-
#on:
6-
# push:
7-
# paths:
8-
# - scripts/docker/android-build-container/Dockerfile
9-
# - .github/workflows/android-docker*
10-
11-
# this is here to prevent errors about not having an on: clause
123
on:
13-
repository_dispatch:
14-
types:
15-
- unused
4+
- workflow_dispatch
5+
- push:
6+
paths:
7+
- scripts/docker/android-build-container
8+
- .github/workflows/android-docker*
9+
- packaging/android/android-build-setup.sh
10+
- packaging/android/variables.sh
1611

1712
jobs:
1813
android-build-container:
1914
runs-on: ubuntu-latest
2015
env:
21-
VERSION: ${{ '5.13.10' }} # the version numbers here is based on the Qt version, the third digit is the rev of the docker image
16+
VERSION: ${{ '5.15.2' }} # the version numbers here is based on the Qt version, the third digit is the rev of the docker image
2217

2318
steps:
2419
- uses: actions/checkout@v1
2520

2621
- name: Get our pre-reqs
2722
run: |
2823
cd scripts/docker/android-build-container
29-
bash download.sh
30-
sed -ie 's/^sudo/#sudo/' setup-docker.sh
3124
bash setup-docker.sh
3225

3326
- name: set env

scripts/docker/android-build-container/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN apt-get update && \
1515

1616
WORKDIR /android
1717

18+
# Scrape the manually curated Qt install from the previous build image
1819
COPY --from=base /android/5.15.1 5.15.1
1920

2021
# install, NDK and SDK there, plus the three files from the Subsurface

scripts/docker/android-build-container/download.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/docker/android-build-container/setup-docker.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@
1616
cp ../../../packaging/android/android-build-setup.sh .
1717
cp ../../../packaging/android/variables.sh .
1818

19+
if [ $1 == "-no-docker-build" ]; then
20+
exit 0
21+
fi
22+
1923
# create the container (this takes a while)
2024
docker build -t android-build .

0 commit comments

Comments
 (0)