Engine update #217
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DoozyX/clang-format-lint-action@v0.15 | |
with: | |
source: ./Scripts | |
extensions: 'fos,h,cpp' | |
clangFormatVersion: 15 | |
unit-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: Engine/BuildTools/validate.sh unit-tests | |
compile-scripts: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
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@v3 | |
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@v3 | |
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 | |
- win64 server Profiling | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: Engine/BuildTools/build.bat ${{matrix.app}} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Binaries | |
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@v3 | |
with: | |
submodules: recursive | |
- run: Engine/BuildTools/prepare-workspace.sh packages ${{matrix.app}} | |
- run: Engine/BuildTools/build.sh ${{matrix.app}} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Binaries | |
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-11 | |
strategy: | |
fail-fast: false | |
matrix: | |
app: | |
- mac client Release | |
- ios client Release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: Engine/BuildTools/build.sh ${{matrix.app}} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Binaries | |
path: | | |
Workspace/output/*Binaries/Client* | |
Workspace/output/*Binaries/Server* | |
Workspace/output/*Binaries/Editor* | |
Workspace/output/*Binaries/Mapper* | |
retention-days: 1 | |
package: | |
runs-on: ubuntu-22.04 | |
needs: [bake-resources, windows-build, linux-build, macos-build] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/download-artifact@v3 | |
with: | |
name: Binaries | |
path: Workspace/output | |
- uses: actions/download-artifact@v3 | |
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@v3 | |
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 |