Skip to content

Commit

Permalink
feat(build): add macos (#113)
Browse files Browse the repository at this point in the history
Add support for building macos (darwin) on PR and release.
  • Loading branch information
stevenh authored Sep 28, 2021
1 parent 02f3fb9 commit fab3912
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ jobs:
- name: make distcheck
run: make distcheck

build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install automake
run: brew install automake
- name: autogen
run: ./autogen.sh
- name: autoreconf force
run: autoreconf --force
- name: configure
run: ./configure
- name: make check
run: make check

build_windows:
runs-on: windows-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@ jobs:
with:
name: linux_amd64
path: qstat

build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install automake
run: brew install automake
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: QSTAT_VERSION=${{ github.event.release.tag_name }} make
- uses: actions/upload-artifact@v2
with:
name: darwin_amd64
path: qstat


build_windows:
runs-on: windows-latest
env:
Expand All @@ -41,6 +60,7 @@ jobs:
needs:
- build_windows
- build_linux
- build_macos
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
Expand Down

0 comments on commit fab3912

Please sign in to comment.