Skip to content

Commit

Permalink
ok should be good to go!
Browse files Browse the repository at this point in the history
  • Loading branch information
thebehera committed Jan 7, 2024
1 parent 2729fa4 commit 022f480
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 12 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/android_integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Android Emulator Integration Test"
on:
pull_request:
paths-ignore:
- '*.md'
types:
- synchronize
- opened
jobs:
review:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 12
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '19'
cache: gradle
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedAndroidTest
39 changes: 39 additions & 0 deletions .github/workflows/android_integration_19.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Android Emulator Integration Test API Level 19"
on:
pull_request:
paths-ignore:
- '*.md'
types:
- synchronize
- opened
jobs:
review:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 12
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '19'
cache: gradle
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 19
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedAndroidTest
13 changes: 3 additions & 10 deletions .github/workflows/merged.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
name: "Build Test and Deploy"
on:
# push:
# paths-ignore:
# - '*.md'
# branches: [ main ]
pull_request:
push:
paths-ignore:
- '*.md'
types:
- synchronize
- opened
branches: [ main ]
env:
username: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
password: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down Expand Up @@ -93,5 +87,4 @@ jobs:
with:
username: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
password: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
staging_repository_id: ${{ needs.create-staging-repository.outputs.repository_id }}
close_only: true
staging_repository_id: ${{ needs.create-staging-repository.outputs.repository_id }}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ val loadAllPlatforms = !isRunningOnGithub || (isMacOS && isMainBranchGithub) ||

println(
"isRunningOnGithub: $isRunningOnGithub isMainBranchGithub: $isMainBranchGithub OS:$isMacOS " +
"Load All Platforms: $loadAllPlatforms, SONATYPE_REPOSITORY_ID=${System.getenv("SONATYPE_REPOSITORY_ID")}"
"Load All Platforms: $loadAllPlatforms"
)

val libraryVersionPrefix: String by project
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
android.useAndroidX=true
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
kotlin.mpp.stability.nowarn=true
libraryVersionPrefix=0.0.
libraryVersionPrefix=1.3.
libraryName=Buffer
libraryDescription=Multiplatform bytebuffer that delegates to native byte[] or ByteBuffer
publishedGroupId=com.ditchoom
Expand Down

0 comments on commit 022f480

Please sign in to comment.