-
-
Notifications
You must be signed in to change notification settings - Fork 19
ci: improve speed and refactor #147
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
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d591cdc
test mac build
buenaflor c93712c
improve
buenaflor e611934
test
buenaflor 08eb575
add jvm test
buenaflor 410b9f6
add distzip job
buenaflor 83a5d9a
fix file
buenaflor 3919e38
Coverage
buenaflor d121793
update
buenaflor 10d1bef
fix
buenaflor 86103de
fix
buenaflor 00072b0
rename
buenaflor 38a0f95
rename
buenaflor 5e206ba
fix
buenaflor dfa1492
update
buenaflor d0cae3f
fix
buenaflor beaf92a
coverage
buenaflor 1a42123
fix
buenaflor 64f9c6a
dont disable daemon
buenaflor eb5d50d
add gradle cache:
buenaflor 528b840
fix
buenaflor f5ec6f1
pin version
buenaflor ccc784e
cache gradle
buenaflor 73fce17
build apple samples
buenaflor eb63c73
don't build all samples
buenaflor 7714e4c
Add konan cache
buenaflor f944301
Add konan cache
buenaflor 6a63acc
try m1 runner
buenaflor 9a3d3f7
xlarge doesn't have android yet
buenaflor 2a54a8c
Update improvements
buenaflor 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: "Analyze" | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release/** | ||
| pull_request: | ||
| paths-ignore: | ||
| - "**/*.md" | ||
| - | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| analyze: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: JDK setup | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
|
|
||
| - name: Analyze | ||
| run: ./gradlew apiCheck detekt | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| name: "Lib: sentry-kotlin-multiplatform" | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release/** | ||
| pull_request: | ||
| paths-ignore: | ||
| - "**/*.md" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-apple: | ||
| runs-on: macos-latest-large | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: JDK setup | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
|
|
||
| - name: Cached Konan | ||
| uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 #v3 | ||
| with: | ||
| path: ~/.konan | ||
| key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
| restore-keys: ${{ runner.os }}-konan- | ||
|
|
||
| - name: Cached Gradle | ||
| uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a | ||
|
|
||
| - name: Apple build | ||
| run: | | ||
| ./scripts/build-apple.sh sentry-kotlin-multiplatform | ||
| env: | ||
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
|
|
||
| build-apple-samples: | ||
| runs-on: macos-latest-large | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: JDK setup | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
|
|
||
| - name: Cached Konan | ||
| uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 #v3 | ||
| with: | ||
| path: ~/.konan | ||
| key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||
| restore-keys: ${{ runner.os }}-konan- | ||
|
|
||
| - name: Cached Gradle | ||
| uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a | ||
|
|
||
| - name: Apple build | ||
| run: | | ||
| make buildAppleSamples | ||
|
|
||
| build-jvm: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: JDK setup | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
|
|
||
| - name: Cached Gradle | ||
| uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a | ||
|
|
||
| - name: JVM build | ||
| run: | | ||
| ./scripts/build-jvm.sh sentry-kotlin-multiplatform | ||
| make createCoverageReports | ||
| env: | ||
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
| GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g" | ||
|
|
||
| # Kover coverage currently only works for JVM | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@v3 | ||
| with: | ||
| name: sentry-kotlin-multiplatform | ||
|
|
||
| archive-distribution: | ||
| runs-on: macos-latest-large | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: JDK setup | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
|
|
||
| - name: Cached Gradle | ||
| uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a | ||
|
|
||
| - name: DistZip | ||
| run: | | ||
| ./scripts/build-distribution.sh sentry-kotlin-multiplatform | ||
|
|
||
| - name: Archive packages | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: ${{ github.sha }} | ||
| if-no-files-found: error | ||
| path: | | ||
| ./*/build/distributions/*.zip |
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 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,27 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [ -z "$1" ]; then | ||
| echo "Please provide a gradle project name." | ||
| exit 1 | ||
| fi | ||
|
|
||
| PROJECT_NAME="$1" | ||
|
|
||
| ./gradlew "macosX64Test" \ | ||
| "iosX64Test" \ | ||
| "watchosX64Test" \ | ||
| "tvosX64Test" \ | ||
| "publishKotlinMultiplatformPublicationToMavenLocal" \ | ||
| "publishIosArm64PublicationToMavenLocal" \ | ||
| "publishIosSimulatorArm64PublicationToMavenLocal" \ | ||
| "publishIosX64PublicationToMavenLocal" \ | ||
| "publishMacosX64PublicationToMavenLocal" \ | ||
| "publishMacosArm64PublicationToMavenLocal" \ | ||
| "publishWatchosArm32PublicationToMavenLocal" \ | ||
| "publishWatchosArm64PublicationToMavenLocal" \ | ||
| "publishWatchosSimulatorArm64PublicationToMavenLocal" \ | ||
| "publishWatchosX64PublicationToMavenLocal" \ | ||
| "publishTvosArm64PublicationToMavenLocal" \ | ||
| "publishTvosSimulatorArm64PublicationToMavenLocal" \ | ||
| "publishTvosX64PublicationToMavenLocal" \ | ||
| -p "${PROJECT_NAME}" |
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,9 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [ -z "$1" ]; then | ||
| echo "Please provide a gradle project name." | ||
| exit 1 | ||
| fi | ||
|
|
||
| PROJECT_NAME="$1" | ||
| ./gradlew "distzip" -p "${PROJECT_NAME}" |
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,15 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [ -z "$1" ]; then | ||
| echo "Please provide a gradle project name." | ||
| exit 1 | ||
| fi | ||
|
|
||
| PROJECT_NAME="$1" | ||
| ./gr | ||
| ./gradlew "testDebugUnitTest" \ | ||
| "testReleaseUnitTest" \ | ||
| "publishAndroidReleasePublicationToMavenLocal" \ | ||
| "publishJvmPublicationToMavenLocal" \ | ||
| "publishKotlinMultiplatformPublicationToMavenLocal" \ | ||
| -p "${PROJECT_NAME}" |
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 |
|---|---|---|
|
|
@@ -27,4 +27,4 @@ SPEC CHECKSUMS: | |
|
|
||
| PODFILE CHECKSUM: f282da88f39e69507b0a255187c8a6b644477756 | ||
|
|
||
| COCOAPODS: 1.12.0 | ||
| COCOAPODS: 1.13.0 | ||
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.