Skip to content

Commit ca06b54

Browse files
committed
Try to combine dependency installation into 1 step as well
1 parent 50584c9 commit ca06b54

File tree

1 file changed

+18
-37
lines changed

1 file changed

+18
-37
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -42,52 +42,33 @@ jobs:
4242
version: 1.3.283.0
4343
cache: true
4444

45-
- name: Disable annotations
45+
- name: Disable Annotations
4646
run: echo "::remove-matcher owner=csc::"
4747

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
8449
run: |
8550
if [ "$RUNNER_OS" == "Linux" ]; then
8651
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
8763
elif [ "$RUNNER_OS" == "Windows" ]; then
8864
dotnet.exe workload install android ios macos
8965
else
9066
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
9172
fi
9273
shell: bash
9374

0 commit comments

Comments
 (0)