2022-03-15 13:29:32 +01:00
|
|
|
name: ☁ Server Builds
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
# Global Settings
|
|
|
|
env:
|
2022-03-20 11:19:29 +01:00
|
|
|
PANDEMONIUM_BASE_BRANCH: master
|
2022-03-16 11:11:27 +01:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-server
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-server:
|
|
|
|
runs-on: "ubuntu-20.04"
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2022-03-16 11:11:27 +01:00
|
|
|
- name: Linux Headless (target=release_debug, tools=yes)
|
|
|
|
cache-name: server-editor
|
2022-03-15 13:29:32 +01:00
|
|
|
target: release_debug
|
|
|
|
tools: true
|
|
|
|
|
2022-03-16 11:11:27 +01:00
|
|
|
- name: Linux Server (target=release, tools=no)
|
|
|
|
cache-name: server-template
|
2022-03-15 13:29:32 +01:00
|
|
|
target: release
|
|
|
|
tools: false
|
|
|
|
|
|
|
|
steps:
|
2022-09-17 09:55:21 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
- name: Linux dependencies
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
# Azure repositories are not reliable, we need to prevent azure giving us packages.
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/*
|
|
|
|
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
|
|
|
|
sudo apt-get update
|
|
|
|
# The actual dependencies
|
|
|
|
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
|
|
|
|
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev \
|
|
|
|
libdbus-1-dev libudev-dev libxi-dev libxrandr-dev yasm xvfb wget unzip
|
|
|
|
|
2022-03-23 20:46:05 +01:00
|
|
|
- name: Setup Pandemonium build cache
|
|
|
|
uses: ./.github/actions/pandemonium-cache
|
2022-03-15 13:29:32 +01:00
|
|
|
with:
|
|
|
|
cache-name: ${{ matrix.cache-name }}
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Setup python and scons
|
2022-03-23 20:46:05 +01:00
|
|
|
uses: ./.github/actions/pandemonium-deps
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
- name: Compilation
|
2022-03-23 20:46:05 +01:00
|
|
|
uses: ./.github/actions/pandemonium-build
|
2022-03-15 13:29:32 +01:00
|
|
|
with:
|
|
|
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
|
|
|
platform: server
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|