-
Notifications
You must be signed in to change notification settings - Fork 269
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
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 }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's best to name your output binary ZIP to be more descriptive https://github.com/alexkay/spek/pull/268/files#diff-ec943e7e17a4e6a51aa0dd98515f3c31fabb7172a37eba9ccb06cb124768f051R149 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is GH? What name do you suggest? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can actually run all these lines together, like this https://github.com/alexkay/spek/pull/268/files#diff-ec943e7e17a4e6a51aa0dd98515f3c31fabb7172a37eba9ccb06cb124768f051R66-R77
There was a problem hiding this comment.
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.