Skip to content

Commit 7df239d

Browse files
authored
Merge pull request github#13126 from owen-mc/go/add-identify-environment-scripts
Go: Add identify-environment scripts
2 parents 81a5800 + 874a426 commit 7df239d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
SETLOCAL EnableDelayedExpansion
3+
4+
type NUL && "%CODEQL_EXTRACTOR_GO_ROOT%/tools/%CODEQL_PLATFORM%/go-autobuilder.exe" --identify-environment
5+
6+
exit /b %ERRORLEVEL%
7+
8+
ENDLOCAL
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
if [ "$CODEQL_PLATFORM" != "linux64" ] && [ "$CODEQL_PLATFORM" != "osx64" ] ; then
6+
echo "Automatic build detection for $CODEQL_PLATFORM is not implemented."
7+
exit 1
8+
fi
9+
10+
"$CODEQL_EXTRACTOR_GO_ROOT/tools/$CODEQL_PLATFORM/go-autobuilder" --identify-environment

0 commit comments

Comments
 (0)