Update pull-requests_build-check.yml
-Try Windows build with Unix Makefiles
This commit is contained in:
@@ -130,36 +130,44 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install boost
|
# - name: Install boost
|
||||||
#uses: MarkusJx/install-boost@v2.0.0
|
# #uses: MarkusJx/install-boost@v2.0.0
|
||||||
uses: MarkusJx/install-boost@boost-mingw
|
# uses: MarkusJx/install-boost@boost-mingw
|
||||||
id: install-boost
|
# id: install-boost
|
||||||
with:
|
# with:
|
||||||
# REQUIRED: Specify the required boost version
|
# # REQUIRED: Specify the required boost version
|
||||||
# A list of supported versions can be found here:
|
# # A list of supported versions can be found here:
|
||||||
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json
|
# # https://github.com/actions/boost-versions/blob/main/versions-manifest.json
|
||||||
boost_version: 1.78.0
|
# boost_version: 1.78.0
|
||||||
# OPTIONAL: Specify a custom install location
|
# # OPTIONAL: Specify a custom install location
|
||||||
boost_install_dir: 'C:'
|
# boost_install_dir: 'C:'
|
||||||
# OPTIONAL: Specify a platform version
|
# # OPTIONAL: Specify a platform version
|
||||||
platform_version: 2019
|
# platform_version: 2019
|
||||||
toolset: mingw
|
# toolset: mingw
|
||||||
|
#
|
||||||
# NOTE: If a boost version matching all requirements cannot be found,
|
# # NOTE: If a boost version matching all requirements cannot be found,
|
||||||
# this build step will fail
|
# # this build step will fail
|
||||||
- name: Setup Windows
|
- name: Setup Windows
|
||||||
run: |
|
run: |
|
||||||
C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S mingw-w64-x86_64-binutils mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git yasm nasm diffutils make"
|
C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S mingw-w64-x86_64-binutils mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost git yasm nasm diffutils make"
|
||||||
|
# - name: Build Windows
|
||||||
|
# env:
|
||||||
|
# BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
|
||||||
|
# run: |
|
||||||
|
# mkdir sunshine-windows-build && cd sunshine-windows-build
|
||||||
|
# set PATH=C:\msys64\mingw64\bin
|
||||||
|
# set BOOST_ROOT=C:\boost
|
||||||
|
# set BOOST_INCLUDEDIR=C:\boost
|
||||||
|
# set BOOST_LIBRARYDIR=C:\boost\lib
|
||||||
|
# cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Release -DSUNSHINE_ASSETS_DIR=assets -G "MinGW Makefiles" ..
|
||||||
|
# mingw32-make -j2
|
||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
env:
|
env:
|
||||||
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
|
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
|
||||||
run: |
|
run: |
|
||||||
mkdir sunshine-windows-build && cd sunshine-windows-build
|
mkdir sunshine-windows-build && cd sunshine-windows-build
|
||||||
set PATH=C:\msys64\mingw64\bin
|
set PATH=C:\msys64\mingw64\bin
|
||||||
set BOOST_ROOT=C:\boost
|
cmake -DCMAKE_BUILD_TYPE=Release -DSUNSHINE_ASSETS_DIR=assets -G "Unix Makefiles" ..
|
||||||
set BOOST_INCLUDEDIR=C:\boost
|
|
||||||
set BOOST_LIBRARYDIR=C:\boost\lib
|
|
||||||
cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Release -DSUNSHINE_ASSETS_DIR=assets -G "MinGW Makefiles" ..
|
|
||||||
mingw32-make -j2
|
mingw32-make -j2
|
||||||
- name: Package Windows
|
- name: Package Windows
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user