ci: Set PREVIOUS_RELEASES_DIR env var in ci-windows-cross.py

This uses the workspace instead of the runner.temp, so that it is easier
to reproduce the CI locally.
This commit is contained in:
MarcoFalke 2026-02-10 12:43:34 +01:00
parent fa4a1cab6c
commit fa99ba5f14
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -127,6 +127,11 @@ def main():
parser.add_argument("step", choices=steps, help="CI step to perform.")
args = parser.parse_args()
os.environ.setdefault(
"PREVIOUS_RELEASES_DIR",
str(Path.cwd() / "previous_releases"),
)
if args.step == "print_version":
print_version()
elif args.step == "check_manifests":

View File

@ -425,10 +425,6 @@ jobs:
./src/univalue/object.exe
./src/univalue/unitester.exe
- name: Set previous release directory
run: |
echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> "$GITHUB_ENV"
- name: Prepare Windows test environment
run: |
py -3 .github/ci-windows-cross.py prepare_tests