Update workflows to use Node.js 20 due to deprecation of Node.js 16 #148
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: epanet2-win32 | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup build directory | |
run: mkdir buildproducts | |
- 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@v4 | |
with: | |
name: epanet2-win32 | |
path: buildproducts\bin\Release |