-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from psuzn/develop
Develop -> Main
- Loading branch information
Showing
123 changed files
with
3,575 additions
and
920 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,47 @@ | ||
name: Build Linux | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: JDK setup | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: corretto | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./build | ||
./.gradle | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.m2/repository | ||
~/.konan | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Tests | ||
run: ./gradlew allTest --parallel --no-daemon --stacktrace | ||
|
||
- name: Lint and Static analysis | ||
run: ./gradlew detekt ktlintCheck --no-daemon --stacktrace | ||
|
||
- name: Validate api compatibility | ||
run: ./gradlew apiCheck --no-daemon --stacktrace | ||
|
||
- name: Build Artifacts | ||
run: ./gradlew publishToMavenLocal | ||
|
This file contains 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,58 @@ | ||
name: Build macOS | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: JDK setup | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: corretto | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./build | ||
./.gradle | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.m2/repository | ||
~/.konan | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Tests | ||
run: ./gradlew allTests -x tvosSimulatorArm64Test -x watchosSimulatorArm64Test | ||
|
||
- name: Validate api compatibility | ||
run: ./gradlew apiCheck --no-daemon --stacktrace | ||
|
||
- name: Mac build | ||
run: | | ||
./gradlew \ | ||
publishIosArm64PublicationToMavenLocal \ | ||
publishIosSimulatorArm64PublicationToMavenLocal \ | ||
publishIosX64PublicationToMavenLocal \ | ||
publishMacosX64PublicationToMavenLocal \ | ||
publishMacosArm64PublicationToMavenLocal \ | ||
publishWatchosArm64PublicationToMavenLocal \ | ||
publishWatchosArm32PublicationToMavenLocal \ | ||
publishWatchosSimulatorArm64PublicationToMavenLocal \ | ||
publishTvosArm64PublicationToMavenLocal \ | ||
publishTvosSimulatorArm64PublicationToMavenLocal \ | ||
publishTvosX64PublicationToMavenLocal \ | ||
--no-daemon --stacktrace |
This file contains 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,25 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main", "develop" ] | ||
paths-ignore: | ||
- "**/*.md" | ||
pull_request: | ||
branches: [ "main", "develop" ] | ||
paths-ignore: | ||
- "**/*.md" | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-linux: | ||
name: Build Linux | ||
uses: ./.github/workflows/build-linux.yml | ||
|
||
build-macos: | ||
name: Build macOS | ||
uses: ./.github/workflows/build-macos.yml | ||
|
This file contains 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 |
---|---|---|
|
@@ -10,40 +10,40 @@ jobs: | |
matrix: | ||
os: [ 'macos-latest' ] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }} | ||
|
||
outputs: | ||
VERSION_NAME: ${{ steps.extract_version_name.outputs.VERSION_NAME }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "Setup: Buildless" | ||
uses: buildless/[email protected] | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
- name: JDK setup | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: | | ||
11 | ||
17 | ||
distribution: 'temurin' | ||
cache: gradle | ||
java-version: 17 | ||
distribution: corretto | ||
|
||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
- name: Checkout Gradle Build Cache | ||
uses: actions/cache@v3 | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./build | ||
./.gradle | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
~/.m2/repository | ||
~/.konan | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Validate api compatibility | ||
run: ./gradlew apiCheck --no-daemon --stacktrace | ||
|
||
- name: Get version name | ||
id: extract_version_name | ||
run: | | ||
|
@@ -68,15 +68,17 @@ jobs: | |
needs: [ release_artifacts ] | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
if: ${{ !endsWith(needs.release_artifacts.outputs.VERSION_NAME,'SNAPSHOT') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Extract release notes | ||
id: release_notes | ||
uses: ffurrer2/extract-release-notes@v1 | ||
with: | ||
prerelease: ${{ contains(needs.release_artifacts.outputs.VERSION_NAME,'alpha') || contains(needs.release_artifacts.outputs.VERSION_NAME,'beta') }} | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: ${{ contains(needs.release_artifacts.outputs.VERSION_NAME,'alpha') || contains(needs.release_artifacts.outputs.VERSION_NAME,'beta') }} | ||
body: ${{ steps.release_notes.outputs.release_notes }} |
Oops, something went wrong.