Skip to content

Commit 99fcb51

Browse files
committed
Update runners to latest version (and install Mono on ubuntu-latest)
1 parent 407c7f9 commit 99fcb51

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/pull-request.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [windows-2022, ubuntu-22.04, macOS-12]
16+
os: [windows-latest, ubuntu-latest, macOS-latest]
1717
steps:
1818
- name: Clone source
1919
uses: actions/checkout@v4
@@ -31,9 +31,18 @@ jobs:
3131
- name: Get .NET information
3232
run: dotnet --info
3333

34+
- name: Install Mono
35+
run: >
36+
sudo apt-get -y install apt-transport-https dirmngr gnupg ca-certificates software-properties-common &&
37+
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef' | sudo tee /etc/apt/trusted.gpg.d/mono-official-stable.asc &&
38+
sudo apt-add-repository -y --no-update 'deb https://download.mono-project.com/repo/ubuntu stable-focal main' &&
39+
sudo apt update &&
40+
sudo apt-get -y install mono-complete mono-vbnc
41+
if: ${{ matrix.os == 'ubuntu-latest' }}
42+
3443
- name: Get Mono information
3544
run: mono --version
36-
if: ${{ matrix.os != 'windows-2022' }}
45+
if: ${{ matrix.os != 'windows-latest' }}
3746

3847
- name: "Build target: BuildAll"
3948
run: dotnet run --project tools/builder --no-launch-profile -- BuildAll

.github/workflows/push-main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: "Build"
12-
runs-on: windows-2022
12+
runs-on: windows-latest
1313
env:
1414
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: true
1515
DOTNET_NOLOGO: true

0 commit comments

Comments
 (0)