Skip to content

Merge pull request #645 from KranX/bugfix/60fps_fly_tail #745

Merge pull request #645 from KranX/bugfix/60fps_fly_tail

Merge pull request #645 from KranX/bugfix/60fps_fly_tail #745

name: Vangers Windows 32bit Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
- name: install libs
run: msys2 -c 'pacman --noconfirm -S
mingw-w64-i686-ninja
mingw-w64-i686-gcc
mingw-w64-i686-SDL2
mingw-w64-i686-SDL2_net
mingw-w64-i686-cmake
mingw-w64-i686-libogg
mingw-w64-i686-libvorbis
mingw-w64-i686-nasm
mingw-w64-i686-yasm
mingw-w64-i686-make
unzip'
- uses: actions/checkout@v1
- name: clunk -- download
run: git clone --depth 1 https://github.com/stalkerg/clunk.git clunk
- name: clunk -- create build dir
run: msys2 -c 'mkdir clunk/build'
- name: clunk -- build and install
run: |
msys2 -c 'cmake -DCMAKE_INSTALL_PREFIX=/mingw32 -G Ninja ..'
msys2 -c 'ninja'
msys2 -c 'ninja install'
working-directory: clunk/build
- name: ffmpeg -- download
run: git clone --depth 1 --branch release/6.0 https://git.ffmpeg.org/ffmpeg.git ffmpeg
- name: ffmpeg -- configure
run: msys2 -c './configure --enable-shared --prefix=/mingw32
--disable-everything
--enable-swscale
--enable-zlib
--enable-demuxer=avi,rawvideo
--enable-decoder=png,rawvideo,h264
--enable-parser=png
--enable-protocol=file
--disable-d3d11va
--disable-dxva2
--disable-doc --disable-ffplay --disable-ffprobe --disable-ffmpeg
--disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv
--disable-lto
--disable-avx
--disable-avx2
--disable-avx512
--disable-fma4
--disable-fma3
--disable-inline-asm'
working-directory: ffmpeg
- name: ffmpeg -- build and install
run: |
msys2 -c 'mingw32-make -j4'
msys2 -c 'mingw32-make install'
working-directory: ffmpeg
- name: vangers -- create build dir
run: msys2 -c 'mkdir build'
- name: vangers -- configure
run: msys2 -c 'cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja ..'
working-directory: build
- name: vangers -- make
run: msys2 -c 'ninja'
working-directory: build
- name: vangers -- pdb
run: |
msys2 -c 'wget https://github.com/rainers/cv2pdb/releases/download/v0.50/cv2pdb-0.50.zip'
msys2 -c 'unzip cv2pdb-0.50.zip'
.\cv2pdb.exe vangers.exe
working-directory: build/src
- name: surmap -- pdb
run: |
..\src\cv2pdb.exe surmap.exe
working-directory: build/surmap
- name: vangers -- prepare release folder
run: |
msys2 -c 'mkdir -p vangers/bin'
msys2 -c 'cp /mingw32/bin/SDL2.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/SDL2_net.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avcodec-60.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avformat-60.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/avutil-58.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libogg-0.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libvorbis-0.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libvorbisfile-3.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/zlib1.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libgcc_s_dw2-1.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libgcc_s_seh-1.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libstdc++-6.dll vangers/bin/'
msys2 -c 'cp /mingw32/bin/libwinpthread-1.dll vangers/bin/'
cp clunk/build/libclunk.dll vangers/bin/
cp build/src/vangers.exe vangers/bin/
cp build/src/vangers.pdb vangers/bin/
cp build/src/vangers.exe vangers/bin/vangers_debug.exe
msys2 -c 'strip vangers/bin/vangers.exe'
cp build/server/vangers_server.exe vangers/bin/
cp build/server/vangers_server.exe vangers/bin/vangers_server_debug.exe
msys2 -c 'strip vangers/bin/vangers_server.exe'
cp build/surmap/surmap.exe vangers/bin/
cp build/surmap/surmap.pdb vangers/bin/
- uses: actions/upload-artifact@v1
with:
name: Vangers-Release-32
path: vangers