update workflows to include the header files in the artifact

This commit is contained in:
Marios S. Kyriakou
2023-10-08 13:13:37 +03:00
parent 7b640122cd
commit ce77b19a24
3 changed files with 39 additions and 14 deletions

View File

@@ -14,13 +14,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: setup_build_dir
- name: Setup build directory
run: mkdir buildproducts
- name: cmake
- name: CMake
working-directory: ./buildproducts
run: cmake .. -A x64 && cmake --build . --config Release
- name: Copy header files to build directory
run: |
copy include\epanet2.h buildproducts\bin\Release
copy include\epanet2_2.h buildproducts\bin\Release
copy include\epanet2_enums.h buildproducts\bin\Release
shell: cmd
- uses: actions/upload-artifact@v2
with:
name: epanet2-win64
path: D:\a\EPANET\EPANET\buildproducts\bin\Release\
path: buildproducts\bin\Release