浏览代码

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

正在加载...
取消
保存