Skip to content

Commit

Permalink
build for ue4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchicn committed Jan 29, 2018
1 parent f30e0ba commit 8385694
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ test_macos:
- make
- gcc

build_win32:
build_win32_ue4:
stage: build
script:
- 'call "%VS140COMNTOOLS%VsDevCmd.bat"'
- 'if exist build rmdir /s /q build'
- 'if exist output rmdir /s /q output'
- 'mkdir build'
- 'cd build'
- 'cmake -G "Visual Studio 14 2015" ../'
- 'msbuild libgltf.sln /t:Rebuild /p:Configuration="Release" /p:Platform="Win32"'
- 'cmake -DLIBGLTF_BUILD_FOR_UE4=True -G "Visual Studio 14 2015" ../'
- 'msbuild ./source/libgltf/libgltf.vcxproj /t:Rebuild /p:Configuration="Release" /p:Platform="Win32"'
- 'cd ../'
artifacts:
name: "libgltf_win32.%CI_PIPELINE_ID%.%CI_JOB_ID%"
Expand All @@ -122,16 +122,16 @@ build_win32:
- cmake
- vs2015

build_win64:
build_win64_ue4:
stage: build
script:
- 'call "%VS140COMNTOOLS%VsDevCmd.bat"'
- 'if exist build rmdir /s /q build'
- 'if exist output rmdir /s /q output'
- 'mkdir build'
- 'cd build'
- 'cmake -G "Visual Studio 14 2015 Win64" ../'
- 'msbuild libgltf.sln /t:Rebuild /p:Configuration="Release" /p:Platform="x64"'
- 'cmake -DLIBGLTF_BUILD_FOR_UE4=True -G "Visual Studio 14 2015 Win64" ../'
- 'msbuild ./source/libgltf/libgltf.vcxproj /t:Rebuild /p:Configuration="Release" /p:Platform="x64"'
- 'cd ../'
artifacts:
name: "libgltf_win64.%CI_PIPELINE_ID%.%CI_JOB_ID%"
Expand All @@ -146,13 +146,13 @@ build_win64:
- cmake
- vs2015

build_linux:
build_linux_ue4:
stage: build
script:
- 'mkdir build'
- 'cd build'
- 'cmake -G "Unix Makefiles" ../'
- 'make'
- 'cmake -DLIBGLTF_BUILD_FOR_UE4=True -G "Unix Makefiles" ../'
- 'make libgltf'
- 'cd ../'
artifacts:
name: "libgltf_linux.${CI_PIPELINE_ID}.${CI_JOB_ID}"
Expand All @@ -167,13 +167,13 @@ build_linux:
- make
- gcc

build_macos:
build_macos_ue4:
stage: build
script:
- 'mkdir build'
- 'cd build'
- 'cmake -G "Unix Makefiles" ../'
- 'make'
- 'cmake -DLIBGLTF_BUILD_FOR_UE4=True -G "Unix Makefiles" ../'
- 'make libgltf'
- 'cd ../'
artifacts:
name: "libgltf_macos.${CI_PIPELINE_ID}.${CI_JOB_ID}"
Expand All @@ -188,15 +188,15 @@ build_macos:
- make
- gcc

package_all:
package_all_ue4:
stage: package
script:
- 'echo package_all'
dependencies:
- build_win32
- build_win64
- build_macos
- build_linux
- build_win32_ue4
- build_win64_ue4
- build_macos_ue4
- build_linux_ue4
artifacts:
name: "libgltf.%CI_PIPELINE_ID%.%CI_JOB_ID%"
expire_in: 1 week
Expand All @@ -206,3 +206,4 @@ package_all:
when: manual
tags:
- win64

0 comments on commit 8385694

Please sign in to comment.