parent
b404e8475c
commit
64e4ee0078
|
@ -287,19 +287,35 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: pull Python Build Standalone
|
name: Record Python Build Standalone version for caching
|
||||||
command: |
|
command: |
|
||||||
|
echo "$PBS_VERSION-$PBS_DATE" | tee /tmp/pbs_version
|
||||||
|
- restore_cache:
|
||||||
|
name: Restore Python Build Standalone from cache
|
||||||
|
key: python-artifacts-{{ checksum "/tmp/pbs_version" }}
|
||||||
|
- run:
|
||||||
|
name: Pull Python Build Standalone
|
||||||
|
command: |
|
||||||
|
if [ -d "python-artifacts" ]; then
|
||||||
|
echo "Using cached python-artifacts for $(cat /tmp/pbs_version)"
|
||||||
|
else
|
||||||
echo "PBS_DATE=$PBS_DATE"
|
echo "PBS_DATE=$PBS_DATE"
|
||||||
.circleci/scripts/fetch-python-standalone.bash \
|
.circleci/scripts/fetch-python-standalone.bash \
|
||||||
"python-artifacts" \
|
"python-artifacts" \
|
||||||
"$PBS_DATE" \
|
"$PBS_DATE" \
|
||||||
"$PBS_VERSION"
|
"$PBS_VERSION"
|
||||||
|
fi
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: python-artifacts
|
path: python-artifacts
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- python-artifacts
|
- python-artifacts
|
||||||
|
- save_cache:
|
||||||
|
name: Save python-build-standalone to cache
|
||||||
|
key: python-artifacts-{{ checksum "/tmp/pbs_version" }}
|
||||||
|
paths:
|
||||||
|
- python-artifacts
|
||||||
|
|
||||||
# Build a dev binary with the default cargo profile
|
# Build a dev binary with the default cargo profile
|
||||||
build-dev:
|
build-dev:
|
||||||
|
|
Loading…
Reference in New Issue