How do I persist files when using Windows orb?
Here are my relevant parts of my yaml file:
orbs:
win: circleci/windows@4.1.1
jobs:
win_build:
executor:
name: win/default
steps:
- checkout
# Create build directory and build the project
- run:
name: Build the project
shell: cmd
command: |
mkdir build
cd build
cmake -G "Visual Studio 16 2019" ..
cmake --build . --config Release
- persist_to_workspace:
root: C:\Users\circleci\project\build\Release
paths:
- night
win_test:
executor:
name: win/default
steps:
- checkout
- attach_workspace:
at: C:\Users\circleci\project\build\Release
- run:
name: Run tests
command: |
cd tests
bash test_night.sh /home/circleci/project/build/night
Thanks,