Merge pull request #759 from Mariosmsk/update-workflows
update workflows to include the header files in the artifact
This commit is contained in:
21
.github/workflows/ccpp.yml
vendored
21
.github/workflows/ccpp.yml
vendored
@@ -8,20 +8,29 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: setup_build_dir
|
|
||||||
|
- name: Setup build directory
|
||||||
run: mkdir buildproducts
|
run: mkdir buildproducts
|
||||||
- name: cmake
|
|
||||||
|
- name: CMake
|
||||||
working-directory: ./buildproducts
|
working-directory: ./buildproducts
|
||||||
run: cmake ..
|
run: cmake ..
|
||||||
- name: make
|
|
||||||
|
- name: Make
|
||||||
working-directory: ./buildproducts
|
working-directory: ./buildproducts
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
|
- name: Copy header files to build directory
|
||||||
|
run: |
|
||||||
|
cp include/epanet2.h buildproducts/
|
||||||
|
cp include/epanet2_2.h buildproducts/
|
||||||
|
cp include/epanet2_enums.h buildproducts/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libepanet-output
|
name: libepanet-output
|
||||||
path: /home/runner/work/EPANET/EPANET/buildproducts/
|
path: buildproducts/
|
||||||
14
.github/workflows/win32.yml
vendored
14
.github/workflows/win32.yml
vendored
@@ -14,13 +14,21 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: setup_build_dir
|
- name: Setup build directory
|
||||||
run: mkdir buildproducts
|
run: mkdir buildproducts
|
||||||
- name: cmake
|
|
||||||
|
- name: CMake
|
||||||
working-directory: ./buildproducts
|
working-directory: ./buildproducts
|
||||||
run: cmake .. -A Win32 && cmake --build . --config Release
|
run: cmake .. -A Win32 && 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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: epanet2-win32
|
name: epanet2-win32
|
||||||
path: D:\a\EPANET\EPANET\buildproducts\bin\Release\
|
path: buildproducts\bin\Release
|
||||||
14
.github/workflows/win64.yml
vendored
14
.github/workflows/win64.yml
vendored
@@ -14,13 +14,21 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: setup_build_dir
|
- name: Setup build directory
|
||||||
run: mkdir buildproducts
|
run: mkdir buildproducts
|
||||||
- name: cmake
|
|
||||||
|
- name: CMake
|
||||||
working-directory: ./buildproducts
|
working-directory: ./buildproducts
|
||||||
run: cmake .. -A x64 && cmake --build . --config Release
|
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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: epanet2-win64
|
name: epanet2-win64
|
||||||
path: D:\a\EPANET\EPANET\buildproducts\bin\Release\
|
path: buildproducts\bin\Release
|
||||||
Reference in New Issue
Block a user