2020-11-15 01:31:20 +03: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 23:38:23 +03:00
|
|
|
|
2020-11-15 01:31:20 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
with_upnp: ['yes', 'no']
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2020-11-15 01:31:20 +03:00
|
|
|
steps:
|
2023-02-26 23:38:23 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2020-11-15 01:31:20 +03:00
|
|
|
- name: install packages
|
|
|
|
run: |
|
2022-12-26 09:43:29 +03:00
|
|
|
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
2020-11-15 01:31:20 +03:00
|
|
|
brew update
|
|
|
|
brew install boost miniupnpc openssl@1.1
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2020-11-15 01:31:20 +03:00
|
|
|
- name: build application
|
|
|
|
run: make HOMEBREW=1 USE_UPNP=${{ matrix.with_upnp }} PREFIX=$GITHUB_WORKSPACE/output -j3
|