mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Disable Kotlin setup on slim runners
Co-authored-by: henrymercer <14129055+henrymercer@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
Generated
+1
-1
@@ -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 .
|
||||
|
||||
Generated
+1
-1
@@ -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
@@ -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(),
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user