Add identify-environment scripts

This commit is contained in:
Owen Mansel-Chan
2023-05-11 11:51:42 +01:00
parent 7251e90633
commit 874a426779
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
@echo off
SETLOCAL EnableDelayedExpansion
type NUL && "%CODEQL_EXTRACTOR_GO_ROOT%/tools/%CODEQL_PLATFORM%/go-autobuilder.exe" --identify-environment
exit /b %ERRORLEVEL%
ENDLOCAL

View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
if [ "$CODEQL_PLATFORM" != "linux64" ] && [ "$CODEQL_PLATFORM" != "osx64" ] ; then
echo "Automatic build detection for $CODEQL_PLATFORM is not implemented."
exit 1
fi
"$CODEQL_EXTRACTOR_GO_ROOT/tools/$CODEQL_PLATFORM/go-autobuilder" --identify-environment