@@ -42,52 +42,33 @@ jobs:
42
42
version : 1.3.283.0
43
43
cache : true
44
44
45
- - name : Disable annotations
45
+ - name : Disable Annotations
46
46
run : echo "::remove-matcher owner=csc::"
47
47
48
- - name : install wine64 on linux
49
- run : |
50
- sudo apt install p7zip-full curl
51
- sudo dpkg --add-architecture i386
52
- sudo mkdir -pm755 /etc/apt/keyrings
53
- sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
54
- sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
55
- sudo apt update && sudo apt install --install-recommends winehq-stable
56
- if : runner.os == 'Linux'
57
-
58
- - name : Install Arial Font
59
- run : |
60
- echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
61
- sudo apt install -y ttf-mscorefonts-installer
62
- sudo fc-cache
63
- fc-match Arial
64
- if : runner.os == 'Linux'
65
-
66
- - name : install wine64 on macos
67
- run : |
68
- brew install wine-stable p7zip freeimage freetype
69
- sudo mkdir -p /usr/local/lib
70
- sudo ln -s /opt/homebrew/lib/libfreetype.dylib /usr/local/lib/libfreetype6.dylib
71
- sudo ln -s /opt/homebrew/lib/libfreeimage.dylib /usr/local/lib/libfreeimage.dylib
72
- if : runner.os == 'macOS'
73
-
74
- - name : Setup Wine
75
- run : wget -qO- https://monogame.net/downloads/net9_mgfxc_wine_setup.sh | bash
76
- if : runner.os != 'Windows'
77
-
78
- - uses : maxim-lobanov/setup-xcode@v1
79
- with :
80
- xcode-version : latest-stable
81
- if : runner.os == 'macOS'
82
-
83
- - name : Install required workloads
48
+ - name : Install Dependencies
84
49
run : |
85
50
if [ "$RUNNER_OS" == "Linux" ]; then
86
51
dotnet workload install android
52
+ sudo apt install p7zip-full curl
53
+ sudo dpkg --add-architecture i386
54
+ sudo mkdir -pm755 /etc/apt/keyrings
55
+ sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
56
+ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
57
+ sudo apt update && sudo apt install --install-recommends winehq-stable
58
+ echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
59
+ sudo apt install -y ttf-mscorefonts-installer
60
+ sudo fc-cache
61
+ fc-match Arial
62
+ run: wget -qO- https://monogame.net/downloads/net9_mgfxc_wine_setup.sh | bash
87
63
elif [ "$RUNNER_OS" == "Windows" ]; then
88
64
dotnet.exe workload install android ios macos
89
65
else
90
66
dotnet workload install android macos ios
67
+ brew install wine-stable p7zip freeimage freetype
68
+ sudo mkdir -p /usr/local/lib
69
+ sudo ln -s /opt/homebrew/lib/libfreetype.dylib /usr/local/lib/libfreetype6.dylib
70
+ sudo ln -s /opt/homebrew/lib/libfreeimage.dylib /usr/local/lib/libfreeimage.dylib
71
+ run: wget -qO- https://monogame.net/downloads/net9_mgfxc_wine_setup.sh | bash
91
72
fi
92
73
shell : bash
93
74
0 commit comments