Skip to content

Commit 7eb25ac

Browse files
committed
:)
1 parent 6efd688 commit 7eb25ac

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docker/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@ FROM debian:buster-slim
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

5+
ARG SCCACHE_URL=https://github.com/mozilla/sccache/releases/download/v0.3.0/sccache-v0.3.0-x86_64-unknown-linux-musl.tar.gz
6+
7+
ENV SCCACHE_BUCKET='swiftnav-sccache'
8+
59
RUN apt-get update && \
610
apt-get install -y \
711
build-essential \
812
curl \
913
file \
1014
git \
1115
sudo \
12-
unzip
16+
unzip \
17+
python3-pip && \
18+
pip3 install awscli upgrade \
19+
&& curl -sSL -o /tmp/sccache.tgz "${SCCACHE_URL}" \
20+
&& mkdir /tmp/sccache \
21+
&& tar --strip-components=1 -C /tmp/sccache -xzf /tmp/sccache.tgz \
22+
&& chmod +x /tmp/sccache/sccache \
23+
&& mv /tmp/sccache/sccache /usr/local/bin

jenkins/createArmhfMuslGcc.groovy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ def call(jenkins) {
22
String name = 'armhf-musl-gcc'
33
Map options = [
44
dockerFile: 'docker/Dockerfile',
5+
node: 'docker.fast',
6+
env: [
7+
CC: 'sccache gcc',
8+
CXX: 'sccache g++'
9+
]
510
]
611
Closure action = {
712
sh """/bin/bash -ex
@@ -13,7 +18,8 @@ def call(jenkins) {
1318
make install
1419
"""
1520

16-
tar(file: 'arm-linux-musleabifh-cross.tar.gz', compress: true, dir: 'output', archive: true)
21+
sh 'echo $(pwd)'
22+
tar(file: 'arm-linux-musleabifh-cross.tar.gz', compress: true, dir: 'build/output', archive: true)
1723
}
1824

1925
return createStage(name, options, action)

0 commit comments

Comments
 (0)