Gradle plugin and KMP modules #8
Workflow file for this run
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
| name: Gradle Plugin | |
| env: | |
| GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
| RUNNING_ON_CI: "true" | |
| LC_ALL: C.UTF-8 | |
| LANG: C.UTF-8 | |
| on: | |
| push: | |
| # tags: | |
| # - v-* | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ensody/vcpkg | |
| path: vcpkg | |
| fetch-depth: 0 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: Install JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: "temurin" | |
| cache: "gradle" | |
| check-latest: true | |
| - name: Configure Gradle | |
| run: | |
| ./gradlew help | |
| ./gradlew --version | |
| - name: Build project | |
| run: ./gradlew build-logic:native-builds-gradle-plugin:assemble --stacktrace | |
| - name: Publish package | |
| if: startsWith(github.ref, 'refs/tags/v-') | |
| run: OVERRIDE_VERSION="$(git tag --points-at HEAD)" ./gradlew build-logic:native-builds-gradle-plugin:publishToMavenCentral | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.PUBLICATION_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.PUBLICATION_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_RING }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| - name: Bundle the build report | |
| if: failure() | |
| run: find . -type d -name 'reports' | zip -@ -r build-report.zip | |
| - name: Upload the build report | |
| if: failure() | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: build-report | |
| path: build-report.zip |