Skip to content

Engine update

Engine update #229

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
check-formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.18
with:
source: ./Scripts
extensions: 'fos,h,cpp'
clangFormatVersion: 18
unit-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/validate.sh unit-tests
compile-scripts:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh CompileAngelScript
bake-resources:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh BakeResources
- run: cd Workspace/output && tar -cf Baking.tar Baking
- uses: actions/upload-artifact@v4
with:
name: Baking
path: Workspace/output/Baking.tar
retention-days: 1
windows-build:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
app:
- win32 client Release
- win64 client Release
- win64 server Release
- win64 editor Release
- win64 mapper Release
- win64 client Profiling_Total
- win64 server Profiling_Total
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/build.bat ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
retention-days: 1
linux-build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
app:
- linux client Release
- android client Release
- android-arm64 client Release
- web client Release
- linux server Release
- linux editor Release
- linux mapper Release
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/prepare-workspace.sh packages ${{matrix.app}}
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
Workspace/output/*Binaries/Server*
Workspace/output/*Binaries/Editor*
Workspace/output/*Binaries/Mapper*
retention-days: 1
macos-build:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
app:
- mac client Release
- ios client Release
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: Engine/BuildTools/build.sh ${{matrix.app}}
- uses: actions/upload-artifact@v4
with:
name: Binaries-${{matrix.app}}
path: |
Workspace/output/*Binaries/Client*
retention-days: 1
package:
runs-on: ubuntu-22.04
needs: [bake-resources, windows-build, linux-build, macos-build]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
pattern: Binaries-*
merge-multiple: true
path: Workspace/output
- uses: actions/download-artifact@v4
with:
name: Baking
path: Workspace/output
- run: cd Workspace/output && tar -xf Baking.tar
- run: cd Workspace/output && tree -d
- run: Engine/BuildTools/prepare-workspace.sh packages linux toolset
- run: Engine/BuildTools/toolset.sh MakePackage-Dev
- uses: actions/upload-artifact@v4
with:
name: TLA-Dev
path: Workspace/output/TLA-Dev
retention-days: 1
- run: (cd Workspace/output/TLA-Dev/TLA-Server-LocalTest && zip -0 -r - .) > TLA-Server.zip
- run: (cd Workspace/output/TLA-Dev/TLA-Client-LocalTest && zip -0 -r - .) > TLA-Client.zip
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
TLA-Server.zip
TLA-Client.zip