Skip to content

Commit

Permalink
Oups 2
Browse files Browse the repository at this point in the history
  • Loading branch information
csaba-ilonka-rollbar committed Aug 7, 2024
1 parent 4eb3fb1 commit 69d3841
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: rollbar-java CI
on:
push:
branches: [master]
branches: [ master ]
pull_request:
branches: [master]
branches: [ master ]

jobs:
validation:
Expand All @@ -16,13 +16,13 @@ jobs:
build:
runs-on: ubuntu-latest
name: Build with Java ${{ matrix.java }}
needs: [validation]
needs: [ validation ]
strategy:
fail-fast: false
matrix:
# Must upgrade Gradle before we can go past Java 15 here.
# https://docs.gradle.org/current/userguide/compatibility.html
java: [8, 11, 15]
java: [ 8, 11, 15 ]
steps:
- uses: actions/checkout@v4

Expand All @@ -43,15 +43,11 @@ jobs:
run: |
./gradlew --version
echo JAVA_HOME: ${JAVA_HOME}
echo ANDROID_HOME: ${ANDROID_HOME}
echo ANDROID_SDK_ROOT: ${ANDROID_SDK_ROOT}
java -version
javac -version
- name: Android SDK info
run: |
echo ANDROID_SDK_ROOT: ${ANDROID_SDK_ROOT}
# Doesn't work with Java 8
# ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --version

- name: Build
run: ./gradlew clean build

Expand All @@ -70,7 +66,7 @@ jobs:
# faster and have less duplicated Yaml, it would not be possible to check
# for all matrix results before publishing if this were just another step
# in that job.
needs: [build]
needs: [ build ]
steps:
- uses: actions/checkout@v4

Expand All @@ -92,7 +88,5 @@ 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
./.github/scripts/temp-release.sh

0 comments on commit 69d3841

Please sign in to comment.