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 May 29, 2024
1 parent 97c7b8c commit 0058751
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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 @@ -163,6 +163,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 @@ -179,6 +213,9 @@ jobs:
ccache-${{ github.job }}-${{ matrix.arch }}-${{ github.ref }}-
ccache-${{ github.job }}-${{ matrix.arch }}-
path: ~/.ccache
- name: Install POSIX libs
run: |
apt-get install g++-mingw-w64-x86-64-posix
- name: Configure
run: |
ccache --zero-stats
Expand Down

0 comments on commit 0058751

Please sign in to comment.