2020-11-15 01:31:20 +03:00
|
|
|
name: Build on OSX
|
|
|
|
|
2024-02-25 02:35:56 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
paths:
|
|
|
|
- .github/workflows/build-osx.yml
|
|
|
|
- daemon/**
|
|
|
|
- i18n/**
|
|
|
|
- libi2pd/**
|
|
|
|
- libi2pd_client/**
|
|
|
|
- Makefile
|
|
|
|
- Makefile.homebrew
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2020-11-15 01:31:20 +03:00
|
|
|
|
|
|
|
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
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2024-04-27 16:36:47 +03:00
|
|
|
- name: Install required formulae
|
2020-11-15 01:31:20 +03:00
|
|
|
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
|
|
|
|
2024-04-27 16:36:47 +03:00
|
|
|
- name: List installed formulae
|
|
|
|
run: brew list
|
|
|
|
|
|
|
|
- name: Build application
|
2020-11-15 01:31:20 +03:00
|
|
|
run: make HOMEBREW=1 USE_UPNP=${{ matrix.with_upnp }} PREFIX=$GITHUB_WORKSPACE/output -j3
|