2020-10-20 13:37:51 +02:00
|
|
|
name: ☁ Server Builds
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2021-09-01 17:26:01 +02:00
|
|
|
# Global Settings
|
2020-10-20 13:37:51 +02:00
|
|
|
env:
|
2021-04-19 14:37:47 +02:00
|
|
|
GODOT_BASE_BRANCH: 3.x
|
2022-02-22 13:10:12 +01:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no module_mono_enabled=yes mono_static=yes mono_glue=no
|
2021-09-01 17:26:01 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-server
|
|
|
|
cancel-in-progress: true
|
2020-10-20 13:37:51 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-09-01 17:26:01 +02:00
|
|
|
build-server:
|
2020-10-20 13:37:51 +02:00
|
|
|
runs-on: "ubuntu-20.04"
|
2021-09-01 17:26:01 +02:00
|
|
|
name: ${{ matrix.name }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: Linux Headless w/ Mono (target=release_debug, tools=yes)
|
|
|
|
cache-name: server-editor-mono
|
|
|
|
target: release_debug
|
|
|
|
tools: true
|
|
|
|
|
|
|
|
- name: Linux Server w/ Mono (target=release, tools=no)
|
|
|
|
cache-name: server-template-mono
|
|
|
|
target: release
|
|
|
|
tools: false
|
2020-10-20 13:37:51 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-09-01 17:26:01 +02:00
|
|
|
- name: Linux dependencies
|
|
|
|
shell: bash
|
2020-10-20 13:37:51 +02:00
|
|
|
run: |
|
2021-09-01 17:26:01 +02:00
|
|
|
# Azure repositories are not reliable, we need to prevent azure giving us packages.
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/*
|
2020-10-20 13:37:51 +02:00
|
|
|
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
|
|
|
|
sudo apt-get update
|
2021-09-01 17:26:01 +02:00
|
|
|
# The actual dependencies
|
2020-10-20 13:37:51 +02:00
|
|
|
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
|
2021-09-01 17:26:01 +02:00
|
|
|
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev \
|
|
|
|
libdbus-1-dev libudev-dev libxi-dev libxrandr-dev yasm xvfb wget unzip
|
2020-10-20 13:37:51 +02:00
|
|
|
|
2021-09-01 17:26:01 +02:00
|
|
|
- name: Setup Godot build cache
|
|
|
|
uses: ./.github/actions/godot-cache
|
2020-10-20 13:37:51 +02:00
|
|
|
with:
|
2021-09-01 17:26:01 +02:00
|
|
|
cache-name: ${{ matrix.cache-name }}
|
2021-08-18 21:00:56 +02:00
|
|
|
continue-on-error: true
|
2020-10-20 13:37:51 +02:00
|
|
|
|
2021-09-01 17:26:01 +02:00
|
|
|
- name: Setup python and scons
|
|
|
|
uses: ./.github/actions/godot-deps
|
2020-10-20 13:37:51 +02:00
|
|
|
|
|
|
|
- name: Compilation
|
2021-09-01 17:26:01 +02:00
|
|
|
uses: ./.github/actions/godot-build
|
2020-10-20 13:37:51 +02:00
|
|
|
with:
|
2021-09-01 17:26:01 +02:00
|
|
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
|
|
|
platform: server
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|