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

Create macos.yml workflow. #776

Merged
Merged
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
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/
Loading