-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport Gradle Configuration Cache.
- Loading branch information
1 parent
a9a3160
commit ca6fedb
Showing
156 changed files
with
2,951 additions
and
504 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 |
---|---|---|
|
@@ -21,12 +21,12 @@ on: | |
configuration: | ||
type: choice | ||
options: | ||
- release | ||
- debug | ||
- release | ||
required: true | ||
default: release | ||
default: debug | ||
description: | ||
'The configuration to use for the tests. "release" will produce release builds, "debug" will produce debug builds (and skip type mapping tests for now).' | ||
'The configuration to use for the tests. "release" will produce release builds, "debug" will produce debug builds (type mapping tests currently always use release).' | ||
target: | ||
type: choice | ||
options: | ||
|
@@ -50,6 +50,7 @@ concurrency: | |
jobs: | ||
acceptance-tests: | ||
name: Acceptance Tests | ||
needs: [gradle-tests] | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Repo | ||
|
@@ -67,18 +68,18 @@ jobs: | |
env: | ||
KOTLIN_LINK_MODE: ${{ inputs.linkage }} | ||
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: ${{ failure() || success() }} | ||
with: | ||
check_name: "Smoke Test Reports - Functional Tests" | ||
report_paths: 'SKIE/acceptance-tests/build/test-results/functional__*/TEST-*.xml' | ||
require_tests: true | ||
# Log size can be too large which causes significant performance issues | ||
# - name: Publish Test Report | ||
# uses: mikepenz/action-junit-report@v3 | ||
# if: ${{ failure() || success() }} | ||
# with: | ||
# check_name: "Smoke Test Reports - Functional Tests" | ||
# report_paths: 'SKIE/acceptance-tests/build/test-results/functional__*/TEST-*.xml' | ||
# require_tests: true | ||
|
||
type-mapping-tests: | ||
name: Type Mapping Tests | ||
needs: [acceptance-tests] | ||
runs-on: self-hosted | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
|
@@ -90,25 +91,25 @@ jobs: | |
- name: Run Type Mapping Tests | ||
uses: gradle/[email protected] | ||
id: run-tests | ||
if: ${{ inputs.configuration != 'debug' }} | ||
with: | ||
arguments: ':acceptance-tests:type-mapping__kgp_latestTest' | ||
build-root-directory: SKIE | ||
env: | ||
KOTLIN_LINK_MODE: ${{ inputs.linkage }} | ||
KOTLIN_TARGET: ${{ inputs.target }} | ||
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: ${{ (failure() || success()) && steps.run-tests.outcome != 'skipped' }} | ||
with: | ||
check_name: "Smoke Test Reports - Type Mapping Tests" | ||
report_paths: 'SKIE/acceptance-tests/build/test-results/type-mapping__*/TEST-*.xml' | ||
require_tests: true | ||
# Log size can be too large which causes significant performance issues | ||
# - name: Publish Test Report | ||
# uses: mikepenz/action-junit-report@v3 | ||
# if: ${{ (failure() || success()) && steps.run-tests.outcome != 'skipped' }} | ||
# with: | ||
# check_name: "Smoke Test Reports - Type Mapping Tests" | ||
# report_paths: 'SKIE/acceptance-tests/build/test-results/type-mapping__*/TEST-*.xml' | ||
# require_tests: true | ||
|
||
external-libraries-tests: | ||
name: External Libraries Tests | ||
needs: [type-mapping-tests] | ||
needs: [acceptance-tests, gradle-tests] | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Repo | ||
|
@@ -126,10 +127,42 @@ jobs: | |
env: | ||
KOTLIN_LINK_MODE: ${{ inputs.linkage }} | ||
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }} | ||
# Log size can be too large which causes significant performance issues | ||
# - name: Publish Test Report | ||
# uses: mikepenz/action-junit-report@v3 | ||
# if: ${{ failure() || success() }} | ||
# with: | ||
# check_name: "Smoke Test Reports - External Libraries Tests" | ||
# report_paths: 'SKIE/acceptance-tests/build/test-results/libraries__*/TEST-*.xml' | ||
# require_tests: true | ||
|
||
gradle-tests: | ||
name: Gradle Tests | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }} | ||
- name: Prepare Worker | ||
uses: ./.github/actions/prepare-worker | ||
- name: Run Gradle Tests | ||
uses: gradle/[email protected] | ||
id: run-tests | ||
with: | ||
arguments: >- | ||
:test | ||
-PtestLevel=smoke | ||
-PtestType=gradle | ||
"-Pmatrix.targets=${{ inputs.target || 'macosArm64' }}" | ||
"-Pmatrix.configurations=${{ inputs.configuration || 'debug' }}" | ||
"-Pmatrix.linkModes=${{ inputs.linkage || 'static' }}" | ||
build-root-directory: test-runner | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
uses: mikepenz/action-junit-report@v4 | ||
if: ${{ failure() || success() }} | ||
with: | ||
check_name: "Smoke Test Reports - External Libraries Tests" | ||
report_paths: 'SKIE/acceptance-tests/build/test-results/libraries__*/TEST-*.xml' | ||
check_name: "Smoke Test Reports - Gradle Tests" | ||
report_paths: 'test-runner/build/test-results/test/TEST-*.xml' | ||
require_tests: true |
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 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
110 changes: 0 additions & 110 deletions
110
SKIE/skie-gradle/plugin-loader/gradle-plugin-loader.gradle.kts
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
11 changes: 11 additions & 0 deletions
11
...le/plugin-shim-api/src/common/kotlin/co/touchlab/skie/plugin/shim/DistributionProvider.kt
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,11 @@ | ||
package co.touchlab.skie.plugin.shim | ||
|
||
import org.jetbrains.kotlin.konan.target.Distribution | ||
|
||
interface DistributionProvider { | ||
|
||
fun provideDistribution( | ||
konanHome: String, | ||
propertyOverrides: Map<String, String>? | ||
): Distribution | ||
} |
8 changes: 8 additions & 0 deletions
8
...im-api/src/common/kotlin/co/touchlab/skie/plugin/shim/NativeCompilerDownloaderProvider.kt
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,8 @@ | ||
package co.touchlab.skie.plugin.shim | ||
|
||
import org.gradle.api.Project | ||
import org.jetbrains.kotlin.gradle.utils.NativeCompilerDownloader | ||
|
||
interface NativeCompilerDownloaderProvider { | ||
fun provide(project: Project): NativeCompilerDownloader | ||
} |
7 changes: 7 additions & 0 deletions
7
...e-gradle/plugin-shim-api/src/common/kotlin/co/touchlab/skie/plugin/shim/ShimEntrypoint.kt
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,7 @@ | ||
package co.touchlab.skie.plugin.shim | ||
|
||
interface ShimEntrypoint { | ||
val distributionProvider: DistributionProvider | ||
|
||
val nativeCompilerDownloaderProvider: NativeCompilerDownloaderProvider | ||
} |
Oops, something went wrong.