[gha] macos: test with different target systems

This commit is contained in:
R4SAS 2025-11-08 00:36:16 +03:00 committed by GitHub
parent 9771d62892
commit f386b2e209
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,13 +20,17 @@ on:
jobs: jobs:
build: build:
name: With USE_UPNP=${{ matrix.with_upnp }} name: Build on ${{ matrix.target-name }}
runs-on: macOS-latest runs-on: ${{ matrix.target }}
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
with_upnp: ['yes', 'no'] include:
- target: macos-latest
target-name: ARM64
- target: macos-latest-large
target-name: Intel x86_64
steps: steps:
- name: Checkout - name: Checkout
@ -36,10 +40,10 @@ jobs:
run: | run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
brew update brew update
brew install boost miniupnpc openssl@1.1 brew install boost miniupnpc openssl@3.5
- name: List installed formulae - name: List installed formulae
run: brew list run: brew list
- name: Build application - name: Build application
run: make HOMEBREW=1 USE_UPNP=${{ matrix.with_upnp }} PREFIX=$GITHUB_WORKSPACE/output -j3 run: make HOMEBREW=1 USE_UPNP=ON PREFIX=$GITHUB_WORKSPACE/output -j3