Skip to content

Commit 4ec5cb5

Browse files
authored
Drone: llvm apt installation (#323)
1 parent 09d6416 commit 4ec5cb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.drone.jsonnet

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ local linux_pipeline(name, image, environment, packages = "", sources = [], arch
3434
commands:
3535
[
3636
'set -e',
37+
'echo $DRONE_STAGE_MACHINE',
3738
'uname -a',
38-
'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -',
39+
'curl -sSL --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/llvm-snapshot.gpg',
3940
] +
4041
(if sources != [] then [ ('apt-add-repository "' + source + '"') for source in sources ] else []) +
4142
(if packages != "" then [ 'apt-get update', 'apt-get -y install ' + packages ] else []) +
@@ -66,6 +67,8 @@ local macos_pipeline(name, environment, xcode_version = "12.2", osx_version = "c
6667
environment: environment + { "DEVELOPER_DIR": "/Applications/Xcode-" + xcode_version + ".app/Contents/Developer" },
6768
commands:
6869
[
70+
'echo $DRONE_STAGE_MACHINE',
71+
'sw_vers',
6972
'uname -a',
7073
'export LIBRARY=' + library,
7174
'./.drone/drone.sh',

0 commit comments

Comments
 (0)