Skip to content

Commit c076b50

Browse files
committed
cache apt
1 parent 1931670 commit c076b50

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/pr_ete_test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ jobs:
4444
- /mnt/shared:/mnt/shared
4545
- /mnt/bigdisk:/mnt/bigdisk
4646
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
47+
- /nvme/share_data/github-actions/resources/apt-sources.list:/etc/apt/sources.list.d/ubuntu.sources
4748
steps:
4849
- name: Setup systems
4950
run: |
5051
apt-get update -y && apt-get install -y software-properties-common wget vim git curl &&\
5152
curl https://sh.rustup.rs -sSf | sh -s -- -y &&\
52-
add-apt-repository ppa:deadsnakes/ppa -y && apt-get update -y && apt-get install -y --no-install-recommends \
53-
ninja-build rapidjson-dev libgoogle-glog-dev gdb python3.10 python3.10-dev python3.10-venv \
54-
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* && cd /opt && python3 -m venv py3
53+
add-apt-repository ppa:deadsnakes/ppa -y && apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
54+
tzdata ninja-build rapidjson-dev libgoogle-glog-dev gdb python3.10 python3.10-dev python3.10-venv \
55+
&& apt-get clean -y && cd /opt && python3 -m venv py3
5556
echo "PATH=/opt/py3/bin:$PATH" >> "$GITHUB_ENV"
5657
- name: Clone repository
5758
uses: actions/checkout@v2

.github/workflows/unit-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ jobs:
4242
- /nvme/share_data/github-actions/hf_home:/root/.cache/huggingface
4343
- /nvme/share_data/github-actions/packages:/root/packages
4444
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
45+
- /nvme/share_data/github-actions/resources/apt-sources.list:/etc/apt/sources.list.d/ubuntu.sources
4546
steps:
4647
- name: Setup systems
4748
run: |
4849
apt-get update -y && apt-get install -y software-properties-common wget git curl &&\
49-
add-apt-repository ppa:deadsnakes/ppa -y && apt-get update -y && apt-get install -y --no-install-recommends \
50-
ninja-build rapidjson-dev libgoogle-glog-dev gdb python3.10 python3.10-dev python3.10-venv \
51-
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* && cd /opt && python3 -m venv py3
50+
add-apt-repository ppa:deadsnakes/ppa -y && apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
51+
tzdata ninja-build rapidjson-dev libgoogle-glog-dev gdb python3.10 python3.10-dev python3.10-venv \
52+
&& apt-get clean -y && cd /opt && python3 -m venv py3
5253
echo "PATH=/opt/py3/bin:$PATH" >> "$GITHUB_ENV"
5354
- name: Clone repository
5455
uses: actions/checkout@v2

0 commit comments

Comments
 (0)