/ .github / workflows / build-macos.yml
build-macos.yml
 1  name: Build on OSX
 2  
 3  on:
 4    push:
 5      branches:
 6      - '*'
 7      paths:
 8      - .github/workflows/build-macos.yml
 9      - daemon/**
10      - i18n/**
11      - libi2pd/**
12      - libi2pd_client/**
13      - Makefile
14      - Makefile.homebrew
15      tags:
16      - '*'
17    pull_request:
18      branches:
19      - '*'
20  
21  jobs:
22    build:
23      name: Build on ${{ matrix.target-name }}
24      runs-on: ${{ matrix.target }}
25  
26      strategy:
27        fail-fast: true
28        matrix:
29          include:
30            - target: macos-15
31              target-name: ARM64
32            - target: macos-15-intel
33              target-name: Intel x86_64
34  
35      steps:
36      - name: Checkout
37        uses: actions/checkout@v4
38  
39      - name: Install required formulae
40        run: |
41          find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
42          brew update
43          brew install boost miniupnpc openssl@3.5
44  
45      - name: List installed formulae
46        run: brew list
47  
48      - name: Build application
49        run: make HOMEBREW=1 USE_UPNP=yes USE_STATIC=yes PREFIX=$GITHUB_WORKSPACE/output -j3
50  
51      - name: Print binary linking
52        run: otool -L i2pd
53