mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
The macOS job checked out Homebrew 7.0.6 and a 2026-09-18 package index on a runner image whose packages a newer Homebrew had installed. The image refreshed on 2026-10-29 with openssl@4 as the linked default, and the pinned Homebrew deadlocked on its own openssl@4 lock while linking the pinned openssl@3 for ccache, so ccache never installed and every run since failed. Homebrew fixed the nested lock in 7.0.10, but any pin older than the image repeats the problem at the next refresh. The pins were added to keep Gazebo on bottles built against one protobuf. Gazebo now comes from the conda-forge lock in macos/pixi.toml, so install from the Homebrew and index the image ships, with auto-update off so the index stays the one its packages came from. macos.sh goes back to plain brew tap and cask installs, which is what it already does on developer machines. Assisted-by: Claude:claude-mythos-5-1 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
87 lines
2.4 KiB
YAML
87 lines
2.4 KiB
YAML
name: MacOS build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
# macOS runners are the most expensive in CI. Pull requests only run this
|
|
# when they touch the macOS setup; main and the weekly run catch the rest.
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
paths:
|
|
- 'Tools/setup/macos.sh'
|
|
- 'Tools/setup/macos/**'
|
|
- 'Tools/setup/requirements.txt'
|
|
- '.github/workflows/compile_macos.yml'
|
|
schedule:
|
|
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: install Python 3.10
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Cache - Restore pip Packages
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/Library/Caches/pip
|
|
key: macos-pip-${{ runner.arch }}-${{ hashFiles('Tools/setup/requirements.txt') }}
|
|
restore-keys: |
|
|
macos-pip-${{ runner.arch }}-
|
|
|
|
- name: setup
|
|
env:
|
|
# Skip `brew update`. The image's Homebrew and package index are
|
|
# the ones its preinstalled packages came from, and a newer index
|
|
# only adds upgrades. Pinning older commits instead put an older
|
|
# Homebrew in charge of packages a newer one had installed.
|
|
HOMEBREW_NO_AUTO_UPDATE: "1"
|
|
run: |
|
|
./Tools/setup/macos.sh --sim-tools
|
|
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
|
|
|
- uses: ./.github/actions/setup-ccache
|
|
id: ccache
|
|
with:
|
|
cache-key-prefix: ccache-macos-15
|
|
max-size: 400M
|
|
|
|
- name: Build px4_sitl
|
|
run: |
|
|
source .venv/bin/activate
|
|
make px4_sitl
|
|
|
|
- name: Cache - Stats after px4_sitl
|
|
run: ccache -s
|
|
|
|
- name: Build px4_fmu-v5_default
|
|
run: make px4_fmu-v5_default
|
|
|
|
# Only non-PR runs save: the 10 GB Actions cache cannot hold an entry for
|
|
# every PR run, and PRs restore from main's newest entry anyway.
|
|
- name: Cache - Stats
|
|
if: always() && github.event_name == 'pull_request'
|
|
run: ccache -s
|
|
|
|
- uses: ./.github/actions/save-ccache
|
|
if: always() && github.event_name != 'pull_request'
|
|
with:
|
|
cache-primary-key: ${{ steps.ccache.outputs.cache-primary-key }}
|