Remove md3d layer #217
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: [ cmake ] | |
pull_request: | |
branches: [ cmake ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: mingw build | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: >- | |
base-devel | |
git | |
mingw-w64-x86_64-toolchain | |
mingw-w64-x86_64-cmake | |
unzip | |
- name: SDL -- cache | |
id: cache-sdl | |
uses: actions/cache@v3 | |
with: | |
path: ${{github.workspace}}/3rdparty/SDL-2.26.5 | |
key: ${{ runner.os }}-sdl-2.26.5 | |
- name: SDL -- download | |
if: steps.cache-sdl.outputs.cache-hit != 'true' | |
run: git clone --depth 1 --branch release-2.26.5 https://github.com/libsdl-org/SDL.git SDL | |
- name: SDL -- configure | |
if: steps.cache-sdl.outputs.cache-hit != 'true' | |
run: msys2 -c 'cmake -B cmake-build-debug -DSDL_SHARED=0 -DSDL_STATIC=1 -DSDL_TEST=0 -DCMAKE_INSTALL_PREFIX=target-debug' | |
working-directory: SDL | |
- name: SDL -- build and install | |
if: steps.cache-sdl.outputs.cache-hit != 'true' | |
run: | | |
msys2 -c 'cmake --build cmake-build-debug --target install' | |
mkdir -p ${{github.workspace}}/3rdparty/SDL-2.26.5 | |
cp -r target-debug/include ${{github.workspace}}/3rdparty/SDL-2.26.5/ | |
cp -r target-debug/lib ${{github.workspace}}/3rdparty/SDL-2.26.5/ | |
working-directory: SDL | |
- shell: msys2 {0} | |
run: | | |
mkdir build-mingw | |
cd build-mingw | |
cmake -G "Unix Makefiles" .. | |
make -j4 | |
cd .. | |
- name: prepare release folder | |
run: | | |
msys2 -c 'cp /mingw64/bin/libiconv-2.dll build-mingw/MechoSoma/' | |
msys2 -c 'cp /mingw64/bin/zlib1.dll build-mingw/MechoSoma/' | |
msys2 -c 'cp /mingw64/bin/libgcc_s_seh-1.dll build-mingw/MechoSoma/' | |
- name: publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: moonshine-runners-windows | |
path: | | |
build-mingw/MechoSoma/moonshine-runners.exe | |
build-mingw/MechoSoma/*.dll |