Skip to content

Commit

Permalink
Merge pull request #776 from Mariosmsk/add-workflow-for-macos-build
Browse files Browse the repository at this point in the history
Create macos.yml workflow.
  • Loading branch information
LRossman authored Mar 19, 2024
2 parents 3139561 + 630f9f0 commit 6b72b0a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: macOS

on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Setup build directory
run: mkdir buildproducts

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

- 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@v4
with:
name: libepanet-output
path: buildproducts/

0 comments on commit 6b72b0a

Please sign in to comment.