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 17, 2024
1 parent 3373c24 commit cd77a78
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 @@ -165,7 +165,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 @@ -175,6 +175,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 @@ -191,6 +225,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 cd77a78

Please sign in to comment.