|
@@ -1,8 +1,10 @@
|
|
|
name: 🐧 Linux Builds
|
|
|
-on: [push, pull_request]
|
|
|
+on:
|
|
|
+ workflow_call:
|
|
|
|
|
|
# Global Settings
|
|
|
env:
|
|
|
+ # Only used for the cache key. Increment version to force clean build.
|
|
|
GODOT_BASE_BRANCH: 3.4
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes
|
|
|
|
|
@@ -27,11 +29,11 @@ jobs:
|
|
|
build-mono: true
|
|
|
artifact: true
|
|
|
|
|
|
- - name: Editor and sanitizers (target=debug, tools=yes, use_asan=yes, use_ubsan=yes)
|
|
|
+ - name: Editor and sanitizers (target=debug, tools=yes, use_asan=yes, use_ubsan=yes, linker=gold)
|
|
|
cache-name: linux-editor-sanitizers
|
|
|
target: debug
|
|
|
tools: true
|
|
|
- sconsflags: use_asan=yes use_ubsan=yes
|
|
|
+ sconsflags: use_asan=yes use_ubsan=yes linker=gold
|
|
|
test: true
|
|
|
bin: "./bin/godot.x11.tools.64s"
|
|
|
build-mono: false
|
|
@@ -52,17 +54,22 @@ jobs:
|
|
|
- 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
|
|
|
+ # Azure repositories are flaky, remove them.
|
|
|
+ sudo rm -f /etc/apt/sources.list.d/{azure,microsoft}*
|
|
|
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
|
|
|
+ # The actual dependencies.
|
|
|
+ sudo apt-get install --no-install-recommends 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
|
|
|
|
|
|
- - name: Setup Godot build cache
|
|
|
- uses: ./.github/actions/godot-cache
|
|
|
+ - name: Free disk space on runner
|
|
|
+ run: |
|
|
|
+ echo "Disk usage before:" && df -h
|
|
|
+ sudo rm -rf /usr/local/lib/android
|
|
|
+ echo "Disk usage after:" && df -h
|
|
|
+
|
|
|
+ - name: Restore Godot build cache
|
|
|
+ uses: ./.github/actions/godot-cache-restore
|
|
|
with:
|
|
|
cache-name: ${{ matrix.cache-name }}
|
|
|
continue-on-error: true
|
|
@@ -70,6 +77,9 @@ jobs:
|
|
|
- name: Setup python and scons
|
|
|
uses: ./.github/actions/godot-deps
|
|
|
|
|
|
+ - name: Setup GCC problem matcher
|
|
|
+ uses: ammaraskar/gcc-problem-matcher@master
|
|
|
+
|
|
|
- name: Compilation
|
|
|
uses: ./.github/actions/godot-build
|
|
|
with:
|
|
@@ -78,6 +88,12 @@ jobs:
|
|
|
target: ${{ matrix.target }}
|
|
|
tools: ${{ matrix.tools }}
|
|
|
|
|
|
+ - name: Save Godot build cache
|
|
|
+ uses: ./.github/actions/godot-cache-save
|
|
|
+ with:
|
|
|
+ cache-name: ${{ matrix.cache-name }}
|
|
|
+ continue-on-error: true
|
|
|
+
|
|
|
# Generate mono glue
|
|
|
- name: Generate Mono glue code
|
|
|
if: ${{ matrix.build-mono }}
|
|
@@ -129,6 +145,7 @@ jobs:
|
|
|
if: ${{ matrix.artifact }}
|
|
|
run: |
|
|
|
strip bin/godot.*
|
|
|
+ chmod +x bin/godot.*
|
|
|
|
|
|
- name: Upload artifact
|
|
|
uses: ./.github/actions/upload-artifact
|