mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: Add identify-environment script
This commit is contained in:
@@ -11,9 +11,15 @@ sh_binary(
|
||||
srcs = ["autobuild.sh"],
|
||||
)
|
||||
|
||||
sh_binary(
|
||||
name = "identify-environment",
|
||||
srcs = ["identify-environment.sh"],
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "scripts",
|
||||
srcs = [
|
||||
":identify-environment",
|
||||
":autobuild",
|
||||
":qltest",
|
||||
],
|
||||
|
||||
6
swift/tools/identify-environment.cmd
Normal file
6
swift/tools/identify-environment.cmd
Normal file
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
SETLOCAL EnableDelayedExpansion
|
||||
|
||||
echo { "swift": { "os": { "name": "macOS" } } }
|
||||
|
||||
ENDLOCAL
|
||||
5
swift/tools/identify-environment.sh
Executable file
5
swift/tools/identify-environment.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
echo '{ "swift": { "os": { "name": "macOS" } } }'
|
||||
Reference in New Issue
Block a user