Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use custom install-mono
  • Loading branch information
filmor committed Mar 2, 2026
commit 8a9ebf93ee2a1c553735e772e6c06ec1aaec2852
43 changes: 43 additions & 0 deletions .github/actions/install-mono/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'Install Mono'
description: 'Install Mono'
branding:
icon: package
color: blue
inputs:
arch:
description: Architecture to install for
required: true
runs:
using: "composite"
steps:
- name: Install on macOS (x86_64)
if: runner.os == 'macOS' && inputs.arch == 'x64'
run: |
brew update
arch -x86_64 /usr/local/bin/brew install mono
shell: sh

- name: Install on macOS
if: runner.os == 'macOS' && inputs.arch != 'x64'
run: |
brew update
brew install mono
shell: sh

- name: Install on Linux
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y mono-runtime-sgen
shell: sh

- name: Install on Windows (x86)
if: runner.os == 'Windows' && inputs.arch == 'x86'
run: choco install --x86 -y mono
shell: sh

- name: Install on Windows
if: runner.os == 'Windows' && inputs.arch != 'x86'
run: choco install -y mono
shell: sh

6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ jobs:
dotnet-version: '10.0.x'

- name: Install Mono
uses: ConorMacBride/install-package@v1.1.0
uses: ./.github/actions/install-mono
with:
brew: mono
choco: mono
apt: mono-runtime-sgen
arch: ${{ matrix.os.platform }}

- name: Set up Python ${{ matrix.python }}
uses: astral-sh/setup-uv@v7
Expand Down