浏览代码

Update drone.yml

tags/v0.0.5
Peter Vivell 6 年前
父节点
当前提交
dc24c398d9
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      drone.yml

+ 4
- 1
drone.yml 查看文件

@@ -7,7 +7,7 @@ platform:
7 7
 
8 8
 cache:
9 9
   mount:
10
-    - /var/cache/apt/archives
10
+    - .cache
11 11
 
12 12
 steps:
13 13
 - name: build
@@ -17,10 +17,13 @@ steps:
17 17
     BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev   
18 18
     MAKEFLAGS: -j 4
19 19
   commands:
20
+    - mkdir -p /var/cache/apt/archives
21
+    - cp -rp .cache/ /var/cache/apt/archives/
20 22
     - echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; }' | tee -a /etc/apt/apt.conf.d/proxy
21 23
     - apt-get update
22 24
     - apt-get --yes upgrade
23 25
     - apt-get --yes install $BUILDDEPS
26
+    - cp -rp /var/cache/apt/archives .cache/
24 27
     - export MAKEFLAGS
25 28
     - make -C src
26 29
     - make -C src/contrib

正在加载...
取消
保存