-
Notifications
You must be signed in to change notification settings - Fork 242
unified autobuild github-action #978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ann0see
merged 32 commits into
jamulussoftware:master
from
nefarius2001:autobuild/stable2
Feb 18, 2021
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7fc6bb5
Add compilation support for nsProcess
ann0see b22fc95
Use older version of Qt
ann0see e4a12d1
unified autobuild github-action
3732f00
stub for windows build docker
addc12f
Use Qt5.9.9 to compile on macOS
ann0see 492d681
Apply styling changes
ann0see a933b7a
Add a line break
ann0see 46ad3e0
Add NSIS COPYING file
ann0see 81ebb78
Merge remote-tracking branch 'x_github_ann0see/nsProcessCompile' into…
3eb2f20
Merge remote-tracking branch 'x_github_ann0see/UseOlderQt' into autob…
a0a2f12
autobuild improved (single github-action, harmonized autobuild)
efdf5e6
Merge remote-tracking branch 'x_github_corrados/master' into autobuil…
cb7e007
rework based on PR-comments (style & comments)
cede26f
code style: spaces, not tabs
27c1f4c
small fix
2bbb314
enable the autobuild for master branch
bdab2dd
disable Flatpak-build
435f8d9
fix workflow file
31fe6fb
remove obsolete comment
0a45a8f
change spacing (code style)
10152e5
quote path variables
c8a5603
Add quotes
ann0see 5fc79f8
remove flatpak build
7af739f
move autobuild folders
a94950c
move duplicated code to one file, fixing bash & chmod
758ed16
remove build for latest-tag
95102be
artifacts+codeQL in one action for Linux
89f68fb
Merge remote-tracking branch 'upst/master' into autobuild/stable2
ann0see 638f63a
Add quotes
ann0see edf66a6
Remove flatpak prepare script
ann0see 408b985
Make files executable
ann0see b2ac9e5
rework
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
autobuild/android/archive___android_build_docker/build_qt_project.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| "${QTDIR}"/bin/qmake -spec android-clang CONFIG+="${CONFIG}" | ||
| /opt/android/android-ndk/prebuilt/linux-x86_64/bin/make | ||
| "${ANDROID_NDK_ROOT}"/prebuilt/"${ANDROID_NDK_HOST}"/bin/make INSTALL_ROOT=android-build -f Makefile install | ||
| "${QTDIR}"/bin/androiddeployqt --input $(ls *.json) --output android-build --android-platform android-30 --jdk "${JAVA_HOME}" --gradle |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| #!/bin/sh -e | ||
|
|
||
| # autobuild_1_prepare: set up environment, install Qt & dependencies | ||
|
|
||
|
|
||
| ################### | ||
| ### PROCEDURE ### | ||
| ################### | ||
|
|
||
| #FROM ubuntu:18.04 | ||
| #based on https://gitlab.com/vikingsoftware/qt5.12.4androiddocker | ||
| #LABEL "Maintainer"="Guenter Schwann" | ||
| #LABEL "version"="0.3" | ||
|
|
||
| export DEBIAN_FRONTEND="noninteractive" | ||
| echo "::set-env name=DEBIAN_FRONTEND::${DEBIAN_FRONTEND}" | ||
|
|
||
| sudo apt-get update | ||
| sudo apt-get -qq -y install build-essential git zip unzip bzip2 p7zip-full wget curl chrpath libxkbcommon-x11-0 | ||
| # Dependencies to create Android pkg | ||
| sudo apt-get -qq -y install openjdk-8-jre openjdk-8-jdk openjdk-8-jdk-headless gradle | ||
| # Clean apt cache | ||
| sudo apt-get clean | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Add Android tools and platform tools to PATH | ||
| export ANDROID_HOME="/opt/android/android-sdk" | ||
| export ANDROID_SDK_ROOT="/opt/android/android-sdk" | ||
| export ANDROID_NDK_ROOT="/opt/android/android-ndk" | ||
|
|
||
| export PATH="${PATH}:${ANDROID_HOME}/tools" | ||
| export PATH="${PATH}:${ANDROID_HOME}/platform-tools" | ||
| export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/" | ||
|
|
||
| # other variables | ||
| export MY_QT_VERSION="5.15.2" | ||
| export ANDROID_NDK_HOST="linux-x86_64" | ||
| export ANDROID_SDKMANAGER="${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" | ||
|
|
||
| # paths for Android SDK | ||
| mkdir -p "${ANDROID_SDK_ROOT}"/cmdline-tools/latest/ | ||
| mkdir -p "${ANDROID_SDK_ROOT}"/build-tools/latest/ | ||
|
|
||
| # Install Android sdk | ||
| #https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip | ||
| #https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | ||
| downloadfile="downloadfile" | ||
| wget -q -O downloadfile https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip | ||
| unzip -q downloadfile | ||
| rm downloadfile | ||
| mv cmdline-tools/* /opt/android/android-sdk/cmdline-tools/latest/ | ||
| rm -r cmdline-tools | ||
|
|
||
| # Install Android ndk | ||
| #https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip | ||
| #https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip | ||
| downloadfile="downloadfile" | ||
| wget -q -O downloadfile https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip | ||
| unzip -q downloadfile | ||
| rm downloadfile | ||
| mv android-ndk-r21d /opt/android/android-ndk | ||
|
|
||
|
|
||
| # Install Android SDK | ||
| yes | "${ANDROID_SDKMANAGER}" --licenses | ||
| #echo yes | $ANDROID_SDKMANAGER --licenses | ||
| "${ANDROID_SDKMANAGER}" --update | ||
| #$ANDROID_SDKMANAGER "platforms;android-17" | ||
| #$ANDROID_SDKMANAGER "platforms;android-28" | ||
| "${ANDROID_SDKMANAGER}" "platforms;android-30" | ||
| #$ANDROID_SDKMANAGER "build-tools;28.0.3" | ||
| "${ANDROID_SDKMANAGER}" "build-tools;30.0.2" | ||
|
|
||
|
|
||
|
|
||
| # Download / install Qt | ||
| ####ADD https://code.qt.io/cgit/qbs/qbs.git/plain/scripts/install-qt.sh ./ | ||
| #COPY install-qt.sh /install-qt.sh | ||
| THIS_SCRIPT=$(readlink -f "${0}") | ||
| # Absolute path this script is in, thus /home/user/bin | ||
| THIS_SCRIPT_PATH=$(dirname "${THIS_SCRIPT}") | ||
| bash "${THIS_SCRIPT_PATH}"/install-qt.sh --version "${MY_QT_VERSION}" --target android --toolchain android qtbase qt3d qtdeclarative qtandroidextras qtconnectivity qtgamepad qtlocation qtmultimedia qtquickcontrols2 qtremoteobjects qtscxml qtsensors qtserialport qtsvg qtimageformats qttools qtspeech qtwebchannel qtwebsockets qtwebview qtxmlpatterns qttranslations | ||
|
|
||
| # Set the QTDIR environment variable | ||
| export QTDIR="/opt/Qt/${MY_QT_VERSION}/android" | ||
|
|
||
|
|
||
| #necessary | ||
| echo "::set-env name=QTDIR::${QTDIR}" | ||
| echo "::set-env name=ANDROID_NDK_ROOT::${ANDROID_NDK_ROOT}" | ||
| echo "::set-env name=ANDROID_NDK_HOST::${ANDROID_NDK_HOST}" | ||
| echo "::set-env name=JAVA_HOME::${JAVA_HOME}" | ||
|
|
||
| #nce to have | ||
| echo "::set-env name=ANDROID_HOME::${ANDROID_HOME}" | ||
| echo "::set-env name=ANDROID_SDK_ROOT::${ANDROID_SDK_ROOT}" | ||
| echo "::set-env name=PATH::${PATH}" | ||
| echo "::set-env name=MY_QT_VERSION::${MY_QT_VERSION}" | ||
| echo "::set-env name=ANDROID_SDKMANAGER::${ANDROID_SDKMANAGER}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/bin/bash -e | ||
|
|
||
| # autobuild_2_build: actual build process | ||
|
|
||
|
|
||
| #################### | ||
| ### PARAMETERS ### | ||
| #################### | ||
|
|
||
| source $(dirname $(readlink -f "${BASH_SOURCE[0]}"))/../ensure_THIS_JAMULUS_PROJECT_PATH.sh | ||
|
|
||
| ################### | ||
| ### PROCEDURE ### | ||
| ################### | ||
|
|
||
| cd "${THIS_JAMULUS_PROJECT_PATH}" | ||
|
|
||
| #$QTDIR/bin/qmake -spec android-clang CONFIG+=$CONFIG | ||
| "${QTDIR}"/bin/qmake -spec android-clang CONFIG+=release | ||
| echo . | ||
| echo . | ||
| echo . | ||
| echo . | ||
| /opt/android/android-ndk/prebuilt/linux-x86_64/bin/make | ||
| echo . | ||
| echo . | ||
| echo . | ||
| echo . | ||
| "${ANDROID_NDK_ROOT}"/prebuilt/"${ANDROID_NDK_HOST}"/bin/make INSTALL_ROOT=android-build -f Makefile install | ||
| echo . | ||
| echo . | ||
| echo . | ||
| echo . | ||
| "${QTDIR}"/bin/androiddeployqt --input $(ls *.json) --output android-build --android-platform android-30 --jdk "${JAVA_HOME}" --gradle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/bin/bash | ||
|
|
||
| # autobuild_3_copy_files: copy the built files to deploy folder | ||
|
|
||
|
|
||
| #################### | ||
| ### PARAMETERS ### | ||
| #################### | ||
|
|
||
| source $(dirname $(readlink -f "${BASH_SOURCE[0]}"))/../ensure_THIS_JAMULUS_PROJECT_PATH.sh | ||
|
|
||
| ################### | ||
| ### PROCEDURE ### | ||
| ################### | ||
|
|
||
| mkdir "${THIS_JAMULUS_PROJECT_PATH}"/deploy | ||
|
|
||
| echo "" | ||
| echo "" | ||
| echo "ls GITROOT/android-build/build/outputs/apk/debug/" | ||
| ls "${THIS_JAMULUS_PROJECT_PATH}"/android-build/build/outputs/apk/debug/ | ||
| echo "" | ||
|
|
||
|
|
||
| artifact_deploy_filename=jamulus_${jamulus_buildversionstring}_android.apk | ||
| echo "" | ||
| echo "" | ||
| echo "move to ${artifact_deploy_filename}" | ||
| mv "${THIS_JAMULUS_PROJECT_PATH}"/android-build/build/outputs/apk/debug/android-build-debug.apk "${THIS_JAMULUS_PROJECT_PATH}"/deploy/"${artifact_deploy_filename}" | ||
|
|
||
| echo "" | ||
| echo "" | ||
| echo "ls GITROOT/deploy/" | ||
| ls "${THIS_JAMULUS_PROJECT_PATH}"/deploy/ | ||
| echo "" | ||
|
|
||
| github_output_value() | ||
| { | ||
| echo "github_output_value() ${1} = ${2}" | ||
| echo "::set-output name=${1}::${2}" | ||
| } | ||
|
|
||
| github_output_value artifact_1 ${artifact_deploy_filename} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.