Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Nov 10, 2023
1 parent 3919e38 commit d121793
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "analyze"
on:
push:
branches:
- main
- release/**
pull_request:
paths-ignore:
- "**/*.md"

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected]
with:
access_token: ${{ github.token }}

analyze:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto

- name: Analyze
run: ./gradlew analyze detekt
51 changes: 44 additions & 7 deletions .github/workflows/kotlin-multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
Expand All @@ -31,17 +31,48 @@ jobs:

- name: Apple build
run: |
./gradlew macosX64Test iosX64Test watchosX64Test tvosX64Test \
publishToMavenLocal \
./gradlew :sentry-kotlin-multiplatform:macosX64Test \
:sentry-kotlin-multiplatform:iosX64Test \
:sentry-kotlin-multiplatform:watchosX64Test \
:sentry-kotlin-multiplatform:tvosX64Test \
:sentry-kotlin-multiplatform:publishKotlinMultiplatformPublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishIosArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishIosSimulatorArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishIosX64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishMacosX64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishMacosArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishWatchosArm32PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishWatchosArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishWatchosDeviceArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishWatchosSimulatorArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishWatchosX64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishTvosArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishTvosSimulatorArm64PublicationToMavenLocal \
:sentry-kotlin-multiplatform:publishTvosX64PublicationToMavenLocal \
--no-daemon --stacktrace
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

build-apple-samples:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto

- name: Xcode simulator build
run: make buildAppleSamples

build-jvm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
Expand All @@ -51,11 +82,17 @@ jobs:

- name: JVM build
run: |
./gradlew build publishToMavenLocal --no-daemon --stacktrace
./gradlew :sentry-kotlin-multiplatform:testDebugUnitTest \
:sentry-kotlin-multiplatform:testReleaseUnitTest
:sentry-kotlin-multiplatform:publishToMavenLocal \
--no-daemon --stacktrace
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"

- name: Create coverage
run: make createCoverageReports

# Kover coverage currently only works for JVM
- name: Upload coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@v3
Expand All @@ -66,7 +103,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
Expand All @@ -76,7 +113,7 @@ jobs:

- name: DistZip
run: |
./gradlew distZip --no-daemon --stacktrace
./gradlew :sentry-kotlin-multiplatform:distZip --no-daemon --stacktrace
- name: Archive packages
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit d121793

Please sign in to comment.