Skip to content

Build

Build #215

Workflow file for this run

name: Build
on:
# Build on commits pushed.
push:
# Build on pull requests.
pull_request:
# Build on a schedule to keep up with the engine changes.
schedule:
- cron: '0 0 * * *'
env:
# Common settings.
CMAKE_VERSION: 3.21.x
# Common paths.
ci_source_dir: ${{ github.workspace }}/source-code
ci_build_dir: ${{ github.workspace }}/cmake-build
jobs:
# There is single job that builds the project for windows.
# There is no deployment, testing or releasing.
Windows:
runs-on: windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: ${{ env.ci_source_dir }}
fetch-depth: 1
submodules: recursive
- name: Download SDK
uses: robinraju/release-downloader@v1.8
with:
repository: rbfx/rbfx
tag: latest
fileName: rebelfork-sdk-Windows-msvc-rel-dll-x64-latest.zip
extract: true
- name: Configure
run: >
cmake
-S ${{ env.ci_source_dir }}
-B ${{ env.ci_build_dir }}
-G "Visual Studio 17 2022"
-A x64
-DBUILD_SHARED_LIBS=ON
-DREBELFORK_SDK=${{ github.workspace }}/SDK
- name: Build
run: |
cmake --build ${{ env.ci_build_dir }} --config RelWithDebInfo