Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update workflows to include the header files in the artifact #759

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: setup_build_dir
- uses: actions/checkout@v2

- name: Setup build directory
run: mkdir buildproducts
- name: cmake

- name: CMake
working-directory: ./buildproducts
run: cmake ..
- name: make

- name: Make
working-directory: ./buildproducts
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
with:
name: libepanet-output
path: /home/runner/work/EPANET/EPANET/buildproducts/
path: buildproducts/
16 changes: 12 additions & 4 deletions .github/workflows/win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
with:
name: epanet2-win32
path: D:\a\EPANET\EPANET\buildproducts\bin\Release\
path: buildproducts\bin\Release
16 changes: 12 additions & 4 deletions .github/workflows/win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading