Skip to content

Commit

Permalink
Kotlin Multiplatform support
Browse files Browse the repository at this point in the history
Merge pull request #116 from prof18/multiplatform-support
  • Loading branch information
prof18 authored Aug 20, 2023
2 parents 686eb41 + bbe0f18 commit 49c5bc5
Show file tree
Hide file tree
Showing 248 changed files with 5,211 additions and 4,195 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@ name: Test on Push
on:
push:
branches:
- '*'
- 'master'

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true
cache-read-only: false

- name: Test
run: ./gradlew clean check --no-daemon --stacktrace
run: ./gradlew :rssparser:check --no-daemon --stacktrace

- name: (Fail-only) Bundle test reports
if: failure()
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ on:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true
cache-read-only: false

- name: Test
run: ./gradlew clean check --no-daemon --stacktrace
run: ./gradlew :rssparser:check --no-daemon --stacktrace

- name: (Fail-only) Bundle test reports
if: failure()
Expand Down
38 changes: 28 additions & 10 deletions .github/workflows/publish-library.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Publish

on:
release:
# We'll run this workflow when a new GitHub release is created
types: [released]

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/[email protected]
with:
gradle-home-cache-cleanup: true
cache-read-only: false

- name: Test
run: ./gradlew clean check --no-daemon --stacktrace
run: ./gradlew :rssparser:check --no-daemon --stacktrace

- name: (Fail-only) Bundle test reports
if: failure()
Expand All @@ -29,14 +36,25 @@ jobs:
path: build-reports.zip

publish:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-read-only: false

- name: Upload Snapshot
run: ./gradlew :rssparser:publishAllPublicationsToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
run: ./gradlew :rssparser:publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel --no-configuration-cache --stacktrace
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
Loading

0 comments on commit 49c5bc5

Please sign in to comment.