File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 with :
3535 submodules : ' true'
3636
37+ - name : Cache pip downloads for aarch64 job
38+ uses : actions/cache@v5
39+ with :
40+ path : .pip-cache
41+ key : ${{ runner.os }}-aarch64-pip-${{ hashFiles('requirements.txt', 'pyproject.toml') }}
42+ restore-keys : |
43+ ${{ runner.os }}-aarch64-pip-
44+ ${{ runner.os }}-pip-
45+
3746 - name : Set up arch and run
3847 uses : uraimo/run-on-arch-action@v3
3948 id : build
4958 # Create an artifacts directory
5059 setup : |
5160 chmod a+rw ${PWD}
61+ mkdir -p ${PWD}/.pip-cache
62+ chmod -R a+rw ${PWD}/.pip-cache
5263
5364 # Mount the current working directory (with checked-out codes) as /MACS3 in the container
5465 dockerRunArgs : |
@@ -82,15 +93,16 @@ jobs:
8293 cd /MACS3
8394
8495 # pip will be upgraded
96+ export PIP_CACHE_DIR=/MACS3/.pip-cache
8597 python3 -m pip install --upgrade pip
8698
8799 # install dependencies
88100 if [ -f requirements.txt ]; then
89- python3 -m pip install -r requirements.txt;
101+ python3 -m pip install --prefer-binary - r requirements.txt;
90102 fi
91103
92- # install MACS3
93- python3 -m pip install .
104+ # install MACS3 without re-installing isolated build dependencies
105+ python3 -m pip install --no-build-isolation --no-deps .
94106
95107 # output versions of installed libraries
96108 python3 -m pip freeze
You can’t perform that action at this time.
0 commit comments