luasocket CMake dependency to be built before engine when building ed… #380
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: CMake-Windows | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 50 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update Git Submodules | |
run: git submodule update --init --recursive | |
- name: Enable Developer Command Prompt (MSVC cl.exe) | |
uses: ilammy/[email protected] | |
- name: Update Ccache and Ninja # Needed for ccache/Ninja bug found in pre-installed version | |
shell: bash | |
run: | | |
choco install ccache | |
echo "==============" | |
ccache --version | |
echo "==============" | |
choco install ninja | |
echo "==============" | |
ninja --version | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: win-${{env.BUILD_TYPE}} | |
variant: ccache | |
- name: Configure CMake | |
run: cmake gametemplate -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJLE_BUILD_EDITOR=ON -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{env.BUILD_TYPE}} | |
path: | | |
build/**/*.exe | |
build/**/EditorResources | |
build/**/EngineResources | |
build/**/GameResources | |
!build/**/CMakeFiles |