File tree Expand file tree Collapse file tree 3 files changed +11
-100
lines changed Expand file tree Collapse file tree 3 files changed +11
-100
lines changed Original file line number Diff line number Diff line change 1
1
language : c
2
2
os : linux
3
3
dist : focal
4
+ addons :
5
+ apt :
6
+ sources :
7
+ - sourceline : ' deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable'
8
+ key_url : ' https://download.docker.com/linux/ubuntu/gpg'
9
+ packages :
10
+ - docker-ce docker-ce-cli containerd.io docker-buildx-plugin
4
11
services :
5
12
- docker
6
13
@@ -59,11 +66,10 @@ before_install:
59
66
- if [ -d "${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM}" ]; then cp -rlf ${HOME}/buildx-cache/.buildx-cache-${POLICY}_${PLATFORM} ./; fi
60
67
61
68
install :
62
- - uptime
63
- - nproc
64
- - free
65
- - cat /proc/cpuinfo
66
- - ./travisci-install-buildx.sh
69
+ - docker version
70
+ - docker buildx version
71
+ - docker buildx create --name builder-manylinux --driver docker-container --use
72
+ - docker buildx inspect --bootstrap --builder builder-manylinux 2>&1 | tee /dev/null
67
73
68
74
script : |
69
75
BUILD_STATUS=success
@@ -88,7 +94,3 @@ deploy:
88
94
on :
89
95
branch : main
90
96
repo : pypa/manylinux
91
-
92
- after_script :
93
- - if [ -f ${HOME}/dockerd-rootless.pid ]; then kill -15 $(cat ${HOME}/dockerd-rootless.pid); fi
94
- - if [ -f /tmp/buildkitd.pid ]; then sudo kill -15 $(cat /tmp/buildkitd.pid); fi
Original file line number Diff line number Diff line change @@ -99,17 +99,6 @@ elif [ "${MANYLINUX_BUILD_FRONTEND}" == "docker-buildx" ]; then
99
99
--cache-from=type=local,src=$( pwd) /.buildx-cache-${POLICY} _${PLATFORM} \
100
100
--cache-to=type=local,dest=$( pwd) /.buildx-cache-staging-${POLICY} _${PLATFORM} ,mode=max \
101
101
${BUILD_ARGS_COMMON}
102
- elif [ " ${MANYLINUX_BUILD_FRONTEND} " == " buildkit" ]; then
103
- USE_LOCAL_CACHE=1
104
- buildctl build \
105
- --frontend=dockerfile.v0 \
106
- --local context=./docker/ \
107
- --local dockerfile=./docker/ \
108
- --import-cache type=local,src=$( pwd) /.buildx-cache-${POLICY} _${PLATFORM} \
109
- --export-cache type=local,dest=$( pwd) /.buildx-cache-staging-${POLICY} _${PLATFORM} ,mode=max \
110
- --opt build-arg:POLICY=${POLICY} --opt build-arg:PLATFORM=${PLATFORM} --opt build-arg:BASEIMAGE=${BASEIMAGE} \
111
- --opt " build-arg:DEVTOOLSET_ROOTPATH=${DEVTOOLSET_ROOTPATH} " --opt " build-arg:PREPEND_PATH=${PREPEND_PATH} " --opt " build-arg:LD_LIBRARY_PATH_ARG=${LD_LIBRARY_PATH_ARG} " \
112
- --output type=docker,name=quay.io/pypa/${POLICY} _${PLATFORM} :${COMMIT_SHA} | docker load
113
102
else
114
103
echo " Unsupported build frontend: '${MANYLINUX_BUILD_FRONTEND} '"
115
104
exit 1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments