Skip to content

Commit 6ace25f

Browse files
committed
try to speed up the CI pipeline on non-x64
1 parent 248fd6d commit 6ace25f

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build-and-test-MACS3-non-x64.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ jobs:
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
@@ -49,6 +58,8 @@ jobs:
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

0 commit comments

Comments
 (0)