2727 env :
2828 CACHE_DIR : ${{ github.workspace }}/.container-cache
2929 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
4030 - name : " Checking out repository"
4131 uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
4232 with :
@@ -55,11 +45,25 @@ jobs:
5545 restore-keys : |
5646 build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-
5747
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+
5856 - name : Install python deps (torch-${{ matrix.torch-version }})
5957 run : |
6058 export cache_dir="${{ env.CACHE_DIR }}"
6159 bash build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }}
6260
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+
6367 - name : Build project
6468 run : |
6569 export cache_dir="${{ env.CACHE_DIR }}"
0 commit comments