Disable Kotlin setup on slim runners

Co-authored-by: henrymercer <14129055+henrymercer@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-30 11:19:23 +00:00
parent 580628ab68
commit 3f1383a26b
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
with:
version: ${{ matrix.version }}
use-all-platform-bundle: 'false'
setup-kotlin: 'true'
setup-kotlin: 'false'
- name: Add a file to the database cluster directory
run: |
mkdir -p "${{ runner.temp }}/customDbLocation/javascript"
+1 -1
View File
@@ -61,7 +61,7 @@ jobs:
with:
version: ${{ matrix.version }}
use-all-platform-bundle: 'false'
setup-kotlin: 'true'
setup-kotlin: 'false'
- name: Copy queries into workspace
run: |
cp -a ../action/queries .
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
with:
version: ${{ matrix.version }}
use-all-platform-bundle: 'false'
setup-kotlin: 'true'
setup-kotlin: 'false'
- uses: ./../action/init
with:
languages: C#,java-kotlin,swift,typescript
+10 -3
View File
@@ -98,6 +98,12 @@ for file in sorted((this_dir / 'checks').glob('*.yml')):
if checkSpecification.get('useAllPlatformBundle'):
useAllPlatformBundle = checkSpecification['useAllPlatformBundle']
# Store the runner size for use in prepare-test step
# This is determined once per check specification
finalRunnerSize = checkSpecification.get('runnerSize', 'default')
if finalRunnerSize == 'default':
finalRunnerSize = 'latest'
if 'analysisKinds' in checkSpecification:
newMatrix = []
@@ -142,9 +148,10 @@ for file in sorted((this_dir / 'checks').glob('*.yml')):
'with': {
'version': '${{ matrix.version }}',
'use-all-platform-bundle': useAllPlatformBundle,
# If the action is being run from a container, then do not setup kotlin.
# This is because the kotlin binaries cannot be downloaded from the container.
'setup-kotlin': str(not 'container' in checkSpecification).lower(),
# If the action is being run from a container or on a slim runner, then do not setup kotlin.
# Containers: kotlin binaries cannot be downloaded from the container.
# Slim runners: limited resources may cause issues with Kotlin setup.
'setup-kotlin': str(not 'container' in checkSpecification and finalRunnerSize != 'slim').lower(),
}
})