Skip to content

Commit 0776859

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

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.drone.jsonnet

Lines changed: 7 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+
'echo $DRONE_STAGE_MACHINE',
41+
'uname -a',
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,9 @@ 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',
75+
'uname -a',
7176
'export LIBRARY=' + library,
7277
'./.drone/drone.sh',
7378
]
@@ -94,6 +99,7 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
9499
environment: environment,
95100
commands:
96101
[
102+
'echo $env:DRONE_STAGE_MACHINE',
97103
'cmd /C .drone\\\\drone.bat ' + library,
98104
]
99105
}

.drone/drone.bat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
set LIBRARY=%1
88
set DRONE_BUILD_DIR=%CD%
99

10-
echo $env:DRONE_STAGE_MACHINE
11-
1210
set BOOST_BRANCH=develop
1311
if "%DRONE_BRANCH%" == "master" set BOOST_BRANCH=master
1412
cd ..

.drone/drone.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
set -ex
88
export PATH=~/.local/bin:/usr/local/bin:$PATH
9-
uname -a
10-
echo $DRONE_STAGE_MACHINE
119

1210
DRONE_BUILD_DIR=$(pwd)
1311

0 commit comments

Comments
 (0)