From 0bf09b525fc88e6b151d3180aeb289adb430df57 Mon Sep 17 00:00:00 2001 From: "Marios S. Kyriakou" Date: Thu, 28 Jul 2022 23:37:10 +0300 Subject: [PATCH] build libs / win & linux --- .github/workflows/ccpp.yml | 6 +++++- .github/workflows/win32.yml | 22 ++++++++++++++++++++++ .github/workflows/win64.yml | 22 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/win32.yml create mode 100644 .github/workflows/win64.yml diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 4f163f3..9dc80b2 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: linux on: [push] @@ -17,3 +17,7 @@ jobs: - name: make working-directory: ./buildproducts run: make + - uses: actions/upload-artifact@v2 + with: + name: libepanet-output + path: /home/runner/work/EPANET/EPANET/buildproducts/ diff --git a/.github/workflows/win32.yml b/.github/workflows/win32.yml new file mode 100644 index 0000000..94b09ae --- /dev/null +++ b/.github/workflows/win32.yml @@ -0,0 +1,22 @@ +name: epanet2-win32 + +on: [push] + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: setup_build_dir + run: mkdir buildproducts + - name: cmake + working-directory: ./buildproducts + run: cmake .. -A Win32 && cmake --build . --config Release + + - uses: actions/upload-artifact@v2 + with: + name: epanet2-win32 + path: D:\a\EPANET\EPANET\buildproducts\bin\Release\ diff --git a/.github/workflows/win64.yml b/.github/workflows/win64.yml new file mode 100644 index 0000000..c6802ae --- /dev/null +++ b/.github/workflows/win64.yml @@ -0,0 +1,22 @@ +name: epanet2-win64 + +on: [push] + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: setup_build_dir + run: mkdir buildproducts + - name: cmake + working-directory: ./buildproducts + run: cmake .. -A x64 && cmake --build . --config Release + + - uses: actions/upload-artifact@v2 + with: + name: epanet2-win64 + path: D:\a\EPANET\EPANET\buildproducts\bin\Release\