Skip to content

Commit 4d7ed3c

Browse files
committed
Drone: llvm apt installation
1 parent 1bb9391 commit 4d7ed3c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.drone.jsonnet

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ local linux_pipeline(name, image, environment, packages = "", sources = [], arch
3737
commands:
3838
[
3939
'set -e',
40-
'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -',
40+
'uname -a',
41+
'echo $DRONE_STAGE_MACHINE',
42+
'curl -sSL --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/llvm-snapshot.gpg',
4143
] +
4244
(if sources != [] then [ ('apt-add-repository "' + source + '"') for source in sources ] else []) +
4345
(if packages != "" then [ 'apt-get update', 'apt-get -y install ' + packages ] else []) +
@@ -68,6 +70,8 @@ local macos_pipeline(name, environment, xcode_version = "12.2", osx_version = "c
6870
environment: environment + { "DEVELOPER_DIR": "/Applications/Xcode-" + xcode_version + ".app/Contents/Developer" },
6971
commands:
7072
[
73+
'echo $DRONE_STAGE_MACHINE',
74+
'sw_vers',
7175
'export LIBRARY=' + library,
7276
'./.drone/drone.sh',
7377
]
@@ -94,6 +98,7 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
9498
environment: environment,
9599
commands:
96100
[
101+
'echo $env:DRONE_STAGE_MACHINE',
97102
'cmd /C .drone\\\\drone.bat ' + library,
98103
]
99104
}

0 commit comments

Comments
 (0)