Skip to content
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

[fix][sdk-372] Fix CI - Old Android SDK removed from Ubuntu 20.04 image runner #314

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9765709
feat(ci): set up SDK manager path and install platform tools
christianbuon Jul 27, 2024
dc6389a
feat(ci): set up SDK manager older version for Java 8
christianbuon Jul 27, 2024
af8e058
feat(ci): add distribution
christianbuon Jul 27, 2024
3131f34
feat(ci): modify distribution
christianbuon Jul 27, 2024
bc5bfb7
feat(ci): just install old command line tool
christianbuon Jul 28, 2024
a7fbf94
feat(ci): install platform tools
christianbuon Jul 28, 2024
a301a77
feat(ci): use a newer version of skd tools
christianbuon Jul 28, 2024
581c58e
feat(ci): use a older version of skd tools
christianbuon Jul 28, 2024
b571567
feat(ci): use a older version of skd tools
christianbuon Jul 28, 2024
2a315af
feat(ci): use a older version of skd tools
christianbuon Jul 28, 2024
6dcece2
feat(ci): swap logs
christianbuon Jul 28, 2024
aa5d143
feat(ci): move log
christianbuon Jul 29, 2024
aac6078
feat(ci): install old platform tools
christianbuon Jul 29, 2024
d03cf43
feat(ci): add dash
christianbuon Jul 29, 2024
ed0bdf1
feat(ci): remove java 11
christianbuon Jul 30, 2024
da9843f
Revert "feat(ci): remove java 11"
christianbuon Jul 30, 2024
cb3581d
feat(ci): change command line tools version
christianbuon Aug 2, 2024
90e4b89
feat(ci): set old command line tools version
christianbuon Aug 2, 2024
3c2a3da
feat(ci): set old command line tools version
christianbuon Aug 2, 2024
c5e662b
feat(ci): change path
christianbuon Aug 2, 2024
fa149cb
feat(ci): try another version
christianbuon Aug 2, 2024
59eb57a
feat(ci): try another version
christianbuon Aug 2, 2024
ad80b7b
feat(ci): update sdkmanager
christianbuon Aug 3, 2024
3df0eeb
feat(ci): Setup Android SDK
christianbuon Aug 3, 2024
85d5b49
feat(ci): Setup Android SDK version 3.2.0
christianbuon Aug 3, 2024
995eec1
feat(ci): Setup Android SDK another version
christianbuon Aug 3, 2024
1807af4
feat(ci): Setup Android SDK another version
christianbuon Aug 3, 2024
98e11c4
feat(ci): Setup Android SDK version 10
christianbuon Aug 3, 2024
31a5d5e
feat(ci): Setup Android SDK version 9
christianbuon Aug 3, 2024
1bfd4a7
feat(ci): Setup Android SDK version 11
christianbuon Aug 3, 2024
4db881f
feat(ci): Setup Android SDK version 9 and add java 8 to sdk manager
christianbuon Aug 4, 2024
39daf35
feat(ci): fix variable
christianbuon Aug 4, 2024
cfe6388
feat(ci): remove third party action
christianbuon Aug 6, 2024
95fb718
build: make snapshot
christianbuon Aug 6, 2024
e95fda5
fix(ci): set command line tool older version
christianbuon Aug 6, 2024
f2db24b
fix(ci): set command line tool older version
christianbuon Aug 6, 2024
7f9f2f7
fix(ci): remove task
christianbuon Aug 6, 2024
c93d056
fix(ci): try to make snapshot with previous solution
christianbuon Aug 7, 2024
b56d80d
remove condition just for testing release
christianbuon Aug 7, 2024
b44e278
refactor: remove third party action
christianbuon Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ EXPECTED_REF="refs/heads/${BRANCH}"

if [[ "$GITHUB_REPOSITORY" != "$REPO" ]]; then
echo "Skipping release: wrong repository. Expected '$REPO' but was '$GITHUB_REPOSITORY'."
elif [[ "$IS_PULL_REQUEST" != "false" ]]; then
echo "Skipping release. It was pull request."
elif [[ "$GITHUB_REF" != "$EXPECTED_REF" ]]; then
echo "Skipping release. Expected '$EXPECTED_REF' but was '$GITHUB_REF'."
#elif [[ "$IS_PULL_REQUEST" != "false" ]]; then
# echo "Skipping release. It was pull request."
#elif [[ "$GITHUB_REF" != "$EXPECTED_REF" ]]; then
# echo "Skipping release. Expected '$EXPECTED_REF' but was '$GITHUB_REF'."
elif [[ -z $VERSION ]]; then
echo "Skipping release. Version value not found."
elif ! [[ $VERSION =~ $SEMVER_REGEX ]]; then
echo "Skipping release. Bad version used."
#elif ! [[ $VERSION =~ $SEMVER_REGEX ]]; then
# echo "Skipping release. Bad version used."
else
# Gradle needs the absolute path to the secring
export GPG_KEY_LOCATION="$(realpath "$GPG_KEY_LOCATION")"

if [[ ${BASH_REMATCH[5]} == 'SNAPSHOT' ]]; then
# if [[ ${BASH_REMATCH[5]} == 'SNAPSHOT' ]]; then
echo "Doing SNAPSHOT release..."
./gradlew -Dorg.gradle.internal.http.socketTimeout=300000 -Dorg.gradle.internal.http.connectionTimeout=300000 publishToSonatype
else
echo "Doing release..."
./gradlew -Dorg.gradle.internal.http.socketTimeout=300000 -Dorg.gradle.internal.http.connectionTimeout=300000 publishToSonatype closeAndReleaseRepository
fi
# else
# echo "Doing release..."
# ./gradlew -Dorg.gradle.internal.http.socketTimeout=300000 -Dorg.gradle.internal.http.connectionTimeout=300000 publishToSonatype closeAndReleaseRepository
# fi
echo "Release done!"
fi
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ jobs:
- name: Fetch git tags
run: ./.github/fetch_to_tag.sh

- name: Setup Android SDK
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "platforms;android-27" "build-tools;28.0.3"

- name: Set up Java 8
uses: actions/setup-java@v1
with:
java-version: 8

- name: Capture JDK8_HOME and set it to SDK manager
run: |
echo "export JDK8_HOME=\"$JAVA_HOME\"" > ~/.jdk8_home
sed -i "2i export JAVA_HOME=${JAVA_HOME}" ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager

# Our build uses JDK7's rt.jar to make sure the artifact is fully
# compatible with Java 7, so we let this action set Java 7 up for us
# and we store its JAVA_HOME
Expand Down Expand Up @@ -55,12 +69,12 @@ jobs:

- name: Environment info
run: |
java -version
javac -version
echo JAVA_HOME: ${JAVA_HOME}
./gradlew --version
echo ANDROID_SDK_ROOT: ${ANDROID_SDK_ROOT}
${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --version
echo JAVA_HOME: ${JAVA_HOME}
java -version
javac -version

- name: Build
run: 'source ~/.jdk7_home && ./gradlew clean build'
Expand Down Expand Up @@ -118,9 +132,8 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
if test "$GITHUB_REPOSITORY" = "rollbar/rollbar-java" -a "$GITHUB_BASE_REF" = ""; then
openssl enc -aes-256-cbc -K "$SECRING_GPG_KEY" -iv "$SECRING_GPG_IV" -in "$ENCRYPTED_GPG_KEY_LOCATION" -out "$GPG_KEY_LOCATION" -d
fi &&
openssl enc -aes-256-cbc -K "$SECRING_GPG_KEY" -iv "$SECRING_GPG_IV" -in "$ENCRYPTED_GPG_KEY_LOCATION" -out "$GPG_KEY_LOCATION" -d
&&
source ~/.jdk7_home &&
./.github/release.sh

Expand Down
Loading