Skip to content

Commit

Permalink
Example build.yml providing a 24.04-based MinGW build process
Browse files Browse the repository at this point in the history
  • Loading branch information
FyiurAmron committed Jun 28, 2024
1 parent 7f80423 commit 74a89b9
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
arch: ['32', '64']
name: mingw${{ matrix.arch }}
runs-on: ubuntu-latest
container: ghcr.io/lmms/linux.mingw:20.04
container: ghcr.io/lmms/base:24.04
env:
CMAKE_OPTS: >-
-DUSE_WERROR=ON
Expand All @@ -183,6 +183,40 @@ jobs:
CCACHE_NOCOMPRESS: 1
MAKEFLAGS: -j2
steps:
- name: Prepare container
run: |
apt-get update
apt-get install -y --no-install-recommends \
dirmngr \
gnupg
echo "deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu focal main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72931B477E22FEFD47F8DECE02FE5F12ADDE29B2
apt-get update
apt-get install -y --no-install-recommends \
nsis \
libmpc3 \
mingw-w64 \
mingw-w64-tools \
binutils-mingw-w64 \
fftw-mingw-w64 \
flac-mingw-w64 \
fltk-mingw-w64 \
fluidsynth-mingw-w64 \
gcc-mingw-w64 \
glib2-mingw-w64 \
lame-mingw-w64 \
libgig-mingw-w64 \
libsamplerate-mingw-w64 \
libsndfile-mingw-w64 \
libsoundio-mingw-w64 \
libvorbis-mingw-w64 \
libz-mingw-w64-dev \
portaudio-mingw-w64 \
qt5base-mingw-w64 \
sdl2-mingw-w64 \
stk-mingw-w64 \
file
rm -rf /var/lib/apt/lists/*
- name: Configure git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check out
Expand All @@ -199,6 +233,15 @@ jobs:
ccache-${{ github.job }}-${{ matrix.arch }}-${{ github.ref }}-
ccache-${{ github.job }}-${{ matrix.arch }}-
path: ~/.ccache
### those are actually not needed; new Ubuntu/MinGW ship those as default
# - name: Install 32-bit POSIX libs
# if: ${{ matrix.arch == '32' }}
# run: |
# apt-get install g++-mingw-w64-i686-posix
# - name: Install 64-bit POSIX libs
# if: ${{ matrix.arch == '64' }}
# run: |
# apt-get install g++-mingw-w64-x86-64-posix
- name: Configure
run: |
ccache --zero-stats
Expand Down

0 comments on commit 74a89b9

Please sign in to comment.