Skip to content

Commit

Permalink
ci circle: update cache key and orbs
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Dec 19, 2023
1 parent f9709be commit 6db438c
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1

orbs:
win: circleci/[email protected]
python: circleci/[email protected]

workflows:
windows_ports:
Expand Down Expand Up @@ -33,6 +34,9 @@ jobs:
VCPKG_DEFAULT_TRIPLET: x64-windows
steps:
- checkout
- python/install-packages:
args: pybind11
pkg-manager: pipenv
- run:
name: "Setup: microsoft/vcpkg(2023.11.20)"
command: |
Expand All @@ -45,16 +49,16 @@ jobs:
Pop-Location
- restore_cache:
keys:
- v2348-downs-{{ .Branch }}
- v2348-downs-{{ checksum ".circleci/config.yml" }}
- v2348-downs-main
- v2348-downs-main
- v2351-downs-{{ .Branch }}
- v2351-downs-{{ checksum ".circleci/config.yml" }}
- v2351-downs-main
- v2351-downs-main
- restore_cache:
keys:
- v2348-bins-{{ .Branch }}
- v2348-bins-{{ checksum ".circleci/config.yml" }}
- v2348-bins-main
- v2348-bins-main
- v2351-bins-{{ .Branch }}
- v2351-bins-{{ checksum ".circleci/config.yml" }}
- v2351-bins-main
- v2351-bins-main
- run:
name: "Install: port-setup.txt"
command: |
Expand All @@ -66,12 +70,12 @@ jobs:
working_directory: vcpkg
no_output_timeout: 1h
- save_cache:
key: v2348-downs-{{ checksum ".circleci/config.yml" }}
key: v2351-downs-{{ checksum ".circleci/config.yml" }}
paths:
- C:/vcpkg-downs
when: always
- save_cache:
key: v2348-bins-{{ checksum ".circleci/config.yml" }}
key: v2351-bins-{{ checksum ".circleci/config.yml" }}
paths:
- C:/vcpkg-bins
when: always
Expand All @@ -86,6 +90,9 @@ jobs:
VCPKG_DEFAULT_TRIPLET: x64-windows
steps:
- checkout
- python/install-packages:
args: pybind11
pkg-manager: pipenv
- run:
name: "Setup: microsoft/vcpkg(2023.11.20)"
command: |
Expand All @@ -98,16 +105,16 @@ jobs:
Pop-Location
- restore_cache:
keys:
- v2348-downs-{{ .Branch }}
- v2348-downs-{{ checksum ".circleci/config.yml" }}
- v2348-downs-main
- v2348-downs-main
- v2351-downs-{{ .Branch }}
- v2351-downs-{{ checksum ".circleci/config.yml" }}
- v2351-downs-main
- v2351-downs-main
- restore_cache:
keys:
- v2348-bins-{{ .Branch }}
- v2348-bins-{{ checksum ".circleci/config.yml" }}
- v2348-bins-main
- v2348-bins-main
- v2351-bins-{{ .Branch }}
- v2351-bins-{{ checksum ".circleci/config.yml" }}
- v2351-bins-main
- v2351-bins-main
- run:
name: "Install: port-windows.txt"
command: |
Expand All @@ -123,15 +130,15 @@ jobs:
equal: [ main, << pipeline.git.branch >> ]
steps:
- save_cache:
key: v2348-bins-{{ .Branch }}
key: v2351-bins-{{ .Branch }}
paths:
- C:/vcpkg-bins
- save_cache:
key: v2348-downs-{{ .Branch }}
key: v2351-downs-{{ .Branch }}
paths:
- C:/vcpkg-downs
- save_cache:
key: v2348-bins-{{ .Branch }}
key: v2351-bins-{{ .Branch }}
paths:
- C:/vcpkg-bins
- store_artifacts:
Expand Down

0 comments on commit 6db438c

Please sign in to comment.