forked from scummvm/scummvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/branch-2-2-0' into dcalt-backend
- Loading branch information
Showing
1,587 changed files
with
162,886 additions
and
138,960 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ | |
SpacesInAngles: false, | ||
SpacesInParentheses: false, | ||
SpacesInSquareBrackets: false, | ||
Standard: c++03, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: win32 | ||
triplet: x86-windows | ||
arch: x86 | ||
# fribidi is disabled due to timeouts when installing the package | ||
configFlags: --enable-faad --enable-mpeg2 --disable-fribidi | ||
vcpkgPackages: 'curl faad2 fluidsynth freetype libflac libjpeg-turbo libmad libmpeg2 libogg libpng libtheora libvorbis sdl2 sdl2-net zlib' | ||
useNasm: 'true' | ||
- platform: x64 | ||
arch: x64 | ||
triplet: x64-windows | ||
# fribidi is disabled due to timeouts when installing the package | ||
configFlags: --enable-faad --enable-mpeg2 --disable-fribidi | ||
vcpkgPackages: 'curl faad2 fluidsynth freetype libflac libjpeg-turbo libmad libmpeg2 libogg libpng libtheora libvorbis sdl2 sdl2-net zlib' | ||
- platform: arm64 | ||
arch: arm64 | ||
triplet: arm64-windows | ||
# fribidi is disabled due to https://github.com/microsoft/vcpkg/issues/11248 [fribidi] Fribidi doesn't cross-compile on x86-64 to target arm/arm64 | ||
# Note that fribidi is also disabled on arm64 in devtools/create_project/msvc.cpp | ||
configFlags: --enable-faad --enable-mpeg2 --disable-fribidi | ||
vcpkgPackages: 'curl faad2 fluidsynth freetype libflac libjpeg-turbo libmad libmpeg2 libogg libpng libtheora libvorbis sdl2 sdl2-net zlib' | ||
env: | ||
CONFIGURATION: Release | ||
PLATFORM: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: ilammy/setup-nasm@v1 | ||
if: ${{ matrix.useNasm }} == 'true' | ||
- name: Install vcpkg and packages | ||
uses: lukka/run-vcpkg@v2 | ||
id: runvcpkg | ||
with: | ||
vcpkgGitCommitId: 2f7a104d4d6f1f3790db929f85a4086aa6973d7f | ||
vcpkgTriplet: '${{ matrix.triplet }}' | ||
vcpkgArguments: '${{ matrix.vcpkgPackages }}' | ||
- name: Upload libs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: libs-${{ matrix.triplet }} | ||
path: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}\\installed\\${{ matrix.triplet }} | ||
- name: Build create_project | ||
run: | | ||
cd devtools/create_project/cmake | ||
cmake . | ||
cmake --build . -j 2 | ||
ls | ||
cd ../../../ | ||
- name: Call create_project | ||
run: | | ||
mkdir build-scummvm | ||
cd build-scummvm | ||
../devtools/create_project/cmake/Debug/create_project.exe .. --msvc --enable-all-engines ${{ matrix.configflags }} --use-canonical-lib-names | ||
ls | ||
- name: set SCUMMVM_LIBS env variable | ||
run: | | ||
echo "::set-env name=SCUMMVM_LIBS::${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}\\installed\\${{ matrix.triplet }}" | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.0.0 | ||
- name: Build scummvm | ||
run: | | ||
cd build-scummvm | ||
ls | ||
msbuild scummvm.sln /m /p:BuildInParallel=true /p:Configuration=Release /p:PreferredToolArchitecture=x64 /p:Platform=${{ matrix.platform }} | ||
- name: Upload scummvm | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: scummvm-${{ matrix.arch }} | ||
path: build-scummvm/Release${{ matrix.arch }}/*.exe | ||
- name: Upload scummvm libs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: scummvm-${{ matrix.arch }} | ||
path: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}\\installed\\${{ matrix.triplet }}\\bin\\*.dll | ||
- name: Upload scummvm symbols | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: symbols-${{ matrix.arch }} | ||
path: build-scummvm/Release${{ matrix.arch }}/*.pdb | ||
- name: Upload scummvm libs symbols | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: symbols-${{ matrix.arch }} | ||
path: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}\\installed\\${{ matrix.triplet }}\\bin\\*.pdb |
Oops, something went wrong.