Skip to content

Commit 61aa9f0

Browse files
committed
macOS CI: correct aqt list-qt syntax; remove all Homebrew usage (issue-7133)
1 parent 9c627e8 commit 61aa9f0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/macos-test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ env:
1111

1212
jobs:
1313
build-macos:
14+
if: github.ref == 'refs/heads/issue-7133-macos-test' # ensure only this branch runs this job
1415
runs-on: macos-latest
1516
steps:
1617
- uses: actions/checkout@v4
1718

18-
# Use isolated Python so pip works (avoids PEP 668)
19+
# Isolated Python so pip works (avoids PEP 668)
1920
- name: Set up Python
2021
uses: actions/setup-python@v5
2122
with:
@@ -41,9 +42,10 @@ jobs:
4142
python3 -m pip install --upgrade pip
4243
python3 -m pip install aqtinstall
4344
44-
- name: List available Qt modules (for visibility)
45+
# Correct syntax: --modules <VERSION> <ARCH>
46+
- name: List available Qt modules
4547
run: |
46-
python3 -m aqt list-qt mac desktop "${QT_VERSION}" --modules macos
48+
python3 -m aqt list-qt mac desktop --modules "${QT_VERSION}" macos
4749
4850
- name: Install Qt (aqt, no Homebrew)
4951
run: |
@@ -54,6 +56,11 @@ jobs:
5456
fi
5557
ls -la "$HOME/Qt/${QT_VERSION}/macos"
5658
59+
# Avoid Homebrew entirely. Fallback installs ninja from PyPI if missing.
60+
- name: Ensure Ninja (no Homebrew)
61+
run: |
62+
ninja --version || python3 -m pip install ninja
63+
5764
- name: Configure (CMake + Qt6)
5865
env:
5966
CMAKE_PREFIX_PATH: ${{ runner.home }}/Qt/${{ env.QT_VERSION }}/macos

0 commit comments

Comments
 (0)