2020-11-14 22:31:20 +00:00
|
|
|
name: Build on OSX
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: With USE_UPNP=${{ matrix.with_upnp }}
|
|
|
|
runs-on: macOS-latest
|
2023-02-26 20:38:23 +00:00
|
|
|
|
2020-11-14 22:31:20 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
with_upnp: ['yes', 'no']
|
2023-02-26 20:38:23 +00:00
|
|
|
|
2020-11-14 22:31:20 +00:00
|
|
|
steps:
|
2023-02-26 20:38:23 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2020-11-14 22:31:20 +00:00
|
|
|
- name: install packages
|
|
|
|
run: |
|
2022-12-26 06:43:29 +00:00
|
|
|
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
2020-11-14 22:31:20 +00:00
|
|
|
brew update
|
|
|
|
brew install boost miniupnpc openssl@1.1
|
2023-02-26 20:38:23 +00:00
|
|
|
|
2020-11-14 22:31:20 +00:00
|
|
|
- name: build application
|
|
|
|
run: make HOMEBREW=1 USE_UPNP=${{ matrix.with_upnp }} PREFIX=$GITHUB_WORKSPACE/output -j3
|