@@ -105,16 +105,54 @@ jobs:
105105 sudo xcode-select --switch "$DEVELOPER_DIR"
106106 xcrun --show-sdk-version
107107
108+ - name : " [Ubuntu] Install dependencies for nuget & vcpkg"
109+ if : runner.os == 'Linux'
110+ run : |
111+ # Install all dependencies needed for the host (x64-linux-release).
112+ # Most of them are related to Qt-related ports build also include some build essentials as well as the Android SDK manager
113+ sudo apt-get update && \
114+ sudo apt-get install -y \
115+ '^libxcb.*-dev' \
116+ autoconf \
117+ autoconf-archive \
118+ automake \
119+ bison \
120+ flex \
121+ mono-complete \
122+ libasound2-dev \
123+ libegl1-mesa-dev \
124+ libghc-resolv-dev \
125+ libglu1-mesa-dev \
126+ libltdl-dev \
127+ libudev-dev \
128+ libx11-xcb-dev \
129+ libxi-dev \
130+ libxkbcommon-dev \
131+ libxkbcommon-x11-dev \
132+ libxrender-dev \
133+ linux-libc-dev \
134+ nasm \
135+ pkg-config \
136+ python3-jinja2
137+ # Install NuGET
138+ sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
139+ sudo tee /usr/local/bin/nuget <<EOF
140+ #!/bin/sh
141+ mono /usr/local/bin/nuget.exe "\$@"
142+ EOF
143+ sudo chmod +x /usr/local/bin/nuget
144+ echo "VCPKG_MAX_CONCURRENCY=3" >> "${GITHUB_ENV}"
145+
108146 - name : " Authenticate to GitHub Packages (readwrite)"
109- if : runner.os != 'Linux' && github.event_name == 'push' && github.repository_owner == 'mixxxdj'
147+ if : github.event_name == 'push' && github.repository_owner == 'mixxxdj'
110148 shell : bash
111149 run : |
112150 nuget sources add -Name "mixxx-github-packages" -Source "https://nuget.pkg.github.com/mixxxdj/index.json" -UserName "${{ github.repository_owner }}" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText
113151 nuget setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "mixxx-github-packages"
114152 echo "VCPKG_BINARY_SOURCES=clear;nuget,mixxx-github-packages,readwrite;" >> "${GITHUB_ENV}"
115153
116154 - name : " Authenticate to GitHub Packages (read only)"
117- if : runner.os != 'Linux' && ( github.event_name == 'pull_request' || github.repository_owner != 'mixxxdj')
155+ if : github.event_name == 'pull_request'
118156 shell : bash
119157 run : |
120158 nuget sources add -Name "mixxx-github-packages" -Source "https://nuget.pkg.github.com/mixxxdj/index.json" -UserName "${{ github.repository_owner }}" -Password "${{ secrets.GITHUB_TOKEN }}" -StorePasswordInClearText
@@ -131,32 +169,12 @@ jobs:
131169 run : ${{ matrix.vcpkg_bootstrap }}
132170 working-directory : ${{ matrix.vcpkg_path }}
133171
134- - name : " [android] Bootstrap vcpkg "
172+ - name : " [android] Install Android SDK "
135173 if : startsWith(matrix.deps_name, 'arm64-android')
136174 run : |
137- # Install all dependencies needed for the host (x64-linux-release).
138- # Most of them are related to Qt-related ports build also include some build essentials as well as the Android SDK manager
139175 sudo apt-get install -y \
140- '^libxcb.*-dev' \
141- autoconf \
142- autoconf-archive \
143- bison \
144- flex \
145176 google-android-cmdline-tools-13.0-installer \
146- libasound2-dev \
147- libegl1-mesa-dev \
148- libghc-resolv-dev \
149- libglu1-mesa-dev \
150- libltdl-dev \
151- libx11-xcb-dev \
152- libxi-dev \
153- libxkbcommon-dev \
154- libxkbcommon-x11-dev \
155- libxrender-dev \
156- linux-libc-dev \
157- openjdk-17-jdk \
158- pkg-config \
159- python3-jinja2
177+ openjdk-17-jdk
160178 yes | sudo sdkmanager "platforms;android-${{ matrix.android_api }}" "platform-tools" "build-tools;${{ matrix.android_version }}" "ndk;${{ matrix.android_ndk }}"
161179 echo "ANDROID_NDK_HOME=/usr/lib/android-sdk/ndk/${{ matrix.android_ndk }}" >> "${GITHUB_ENV}"
162180 sudo sdkmanager --list_installed
0 commit comments