-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2543998
Showing
363 changed files
with
59,651 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 110 | ||
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[{*.yml,*.json,gradlew}] | ||
indent_size = 2 | ||
|
||
[{*.yml,*.md,*.txt}] | ||
max_line_length = off |
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,123 @@ | ||
name: Build & Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build & Test | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout workspace | ||
uses: actions/checkout@v3 | ||
timeout-minutes: 5 | ||
with: | ||
fetch-depth: 0 # no shallow clones for SonarQube | ||
- name: Set up Java JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17.0.5+8' | ||
- name: Gradle Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.gradle/native | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle.kts') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
- name: Kotlin Native Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.konan | ||
key: ${{ runner.os }}-konan-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle.kts') }} | ||
restore-keys: ${{ runner.os }}-konan- | ||
- name: Android Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.android | ||
key: ${{ runner.os }}-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle.kts') }} | ||
restore-keys: ${{ runner.os }}-android- | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Build & Test | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew build test koverXmlReport detekt sonar assembleXCFramework --parallel | ||
- name: Set RELEASE_VERSION variable | ||
run: | | ||
echo "RELEASE_VERSION=$(cat build/version.txt)" >> $GITHUB_ENV | ||
echo ${{ env.RELEASE_VERSION }} | ||
- name: Upload reports | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: reports.zip | ||
path: build/reports | ||
- name: List files | ||
run: | | ||
ls -lah build/bin/*/releaseExecutable build/libs/ build/outputs/aar/ build/XCFrameworks/release/ | ||
- name: Upload xmpcore.jar | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore.jar | ||
path: build/libs/xmpcore-jvm-${{ env.RELEASE_VERSION }}.jar | ||
- name: Upload xmpcore.aar | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore.aar | ||
path: build/outputs/aar/xmpcore-release.aar | ||
- name: Upload xmpcore.xcframework | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore.xcframework | ||
path: build/XCFrameworks/release/xmpcore.xcframework | ||
- name: Upload xmpcore.exe | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore.exe | ||
path: build/bin/win/releaseExecutable/xmpcore.exe | ||
- name: Upload xmpcore-macosX64.kexe | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore-macosX64.kexe | ||
path: build/bin/macosX64/releaseExecutable/xmpcore.kexe | ||
- name: Upload xmpcore-macosArm64.kexe | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: xmpcore-macosArm64.kexe | ||
path: build/bin/macosArm64/releaseExecutable/xmpcore.kexe | ||
- name: Export secring.pgp | ||
if: startsWith(github.ref, 'refs/tags/') # Only for releases | ||
run: | | ||
echo ${{ secrets.SINGING_SECRET_KEY_RING_FILE_CONTENTS }} | base64 --decode > secring.pgp | ||
- name: Publish to Maven Central | ||
if: startsWith(github.ref, 'refs/tags/') # Only for releases | ||
env: | ||
SIGNING_ENABLED: true | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: ./gradlew publishAllPublicationsToSonatypeRepository |
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,26 @@ | ||
**/.DS_Store | ||
**/Thumbs.db | ||
.DS_Store | ||
/.gradle/ | ||
/.idea/.name | ||
/.idea/artifacts/ | ||
/.idea/assetWizardSettings.xml | ||
/.idea/compiler.xml | ||
/.idea/deploymentTargetDropDown.xml | ||
/.idea/gradle.xml | ||
/.idea/jarRepositories.xml | ||
/.idea/kotlinScripting.xml | ||
/.idea/kotlinc.xml | ||
/.idea/libraries/ | ||
/.idea/misc.xml | ||
/.idea/modules.xml | ||
/.idea/modules/ | ||
/.idea/runConfigurations.xml | ||
/.idea/shelf/ | ||
/.idea/sonarlint/ | ||
/.idea/uiDesigner.xml | ||
/.idea/vcs.xml | ||
/.idea/workspace.xml | ||
/.idea/xmpcore.iml | ||
/build/ | ||
/local.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.