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

GitHub Action to build for macOS #271

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/build-macOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build on macOS

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
strategy:
matrix:
runner: [macos-11, macos-12]
runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- name: install dependencies
run: brew install automake coreutils ffmpeg wxwidgets
- name : symlink wxwin.m4
run: find /usr/local/Cellar/wxwidgets/ -name "wxwin.m4" -exec ln -s {} /usr/local/share/aclocal/wxwin.m4 \;
- name: autogen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@samuello1228 samuello1228 Feb 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your reminder. But, I will keep them separate.

run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
- name: bundle
run: ./dist/osx/bundle.sh

- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: binary-${{ matrix.runner }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@samuello1228 samuello1228 Feb 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is GH?
What is ${{ github.repository_owner }}?
What is ${{ env.short_sha }}?

What name do you suggest?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just named it GH for github... but the rest are variables

path: dist/osx/Spek.dmg