27
27
env :
28
28
CACHE_DIR : ${{ github.workspace }}/.container-cache
29
29
steps :
30
- - name : Configure local git mirrors
31
- run : |
32
- # Our stock runners have access to certain local git caches. If these
33
- # files are available, it will prime the cache and configure git to
34
- # use them. Practically, this eliminates network/latency for cloning
35
- # llvm.
36
- if [[ -x /gitmirror/scripts/trigger_update_mirrors.sh ]]; then
37
- /gitmirror/scripts/trigger_update_mirrors.sh
38
- /gitmirror/scripts/git_config.sh
39
- fi
40
30
- name : " Checking out repository"
41
31
uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
42
32
with :
@@ -55,11 +45,25 @@ jobs:
55
45
restore-keys : |
56
46
build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-
57
47
48
+ - name : " Setting up Python"
49
+ run : |
50
+ sudo apt update
51
+ sudo apt install software-properties-common -y
52
+ sudo add-apt-repository ppa:deadsnakes/ppa -y
53
+ sudo apt install python3.11 python3-pip -y
54
+ sudo apt-get install python3.11-dev python3.11-venv build-essential -y
55
+
58
56
- name : Install python deps (torch-${{ matrix.torch-version }})
59
57
run : |
60
58
export cache_dir="${{ env.CACHE_DIR }}"
61
59
bash build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }}
62
60
61
+ - name : ccache
62
+ uses : hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16
63
+ with :
64
+ key : ${{ github.job }}-${{ matrix.torch-version }}
65
+ save : ${{ needs.setup.outputs.write-caches == 1 }}
66
+
63
67
- name : Build project
64
68
run : |
65
69
export cache_dir="${{ env.CACHE_DIR }}"
0 commit comments