🌐 AI搜索 & 代理 主页
Skip to content

Commit 35d0f04

Browse files
committed
Use generic package installer
1 parent 8bb99bc commit 35d0f04

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ jobs:
5151
python: ["3.10", "3.11", "3.12", "3.13"]
5252

5353
steps:
54-
- name: Set Environment on macOS
55-
uses: maxim-lobanov/setup-xamarin@v1
56-
if: ${{ matrix.os.category == 'macos' }}
57-
with:
58-
mono-version: latest
59-
6054
- name: Checkout code
6155
uses: actions/checkout@v6
6256

@@ -65,6 +59,13 @@ jobs:
6559
with:
6660
dotnet-version: '8.0.x'
6761

62+
- name: Install Mono
63+
uses: ConorMacBride/install-package@v1.1.0
64+
with:
65+
brew: mono
66+
choco: mono
67+
apt: mono-runtime-sgen
68+
6869
- name: Set up Python ${{ matrix.python }}
6970
uses: astral-sh/setup-uv@v7
7071
with:
@@ -76,9 +77,6 @@ jobs:
7677
- name: Synchronize the virtual environment
7778
run: uv sync --managed-python
7879

79-
- name: Show pyvenv.cfg
80-
run: cat .venv/pyvenv.cfg
81-
8280
- name: Embedding tests (Mono/.NET Framework)
8381
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/
8482
if: always()

0 commit comments

Comments
 (0)