regression-test-project/.github/workflows/required.yml

70 lines
2.4 KiB
YAML
Raw Normal View History

2020-12-26 10:41:59 +01:00
name: 🐧 Required Build
2020-10-29 08:52:56 +01:00
on: [push, pull_request]
jobs:
linux-sanitizer:
runs-on: "ubuntu-20.04"
2020-11-17 19:21:50 +01:00
name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, debug_symbols=yes, use_ubsan=yes, use_asan=yes)
2020-10-29 08:52:56 +01:00
steps:
- uses: actions/checkout@v2
# Azure repositories are not reliable, we need to prevent azure giving us packages.
- name: Make apt sources.list use the default Ubuntu repositories
run: |
sudo rm -f /etc/apt/sources.list.d/*
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
sudo apt-get update
2020-10-29 08:52:56 +01:00
# Install all packages (except scons)
- name: Configure dependencies
run: |
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \
xvfb wget2 unzip python scons git
# - name: Download Godot
# run: |
# wget2 https://downloads.tuxfamily.org/godotengine/3.2.4/beta1/Godot_v3.2.4-beta1_x11.64.zip
# unzip Godot_v3.2.4-beta1_x11.64.zip
# rm Godot_v3.2.4-beta1_x11.64.zip
# mv Godot_v3.2.4-beta1_x11.64 godot.x11.tools.64s
# - name: Download Godot(ZIP)
# run: |
# wget2 https://github.com/godotengine/godot/archive/3.2.zip
# unzip 3.2.zip
# rm 3.2.zip
- name: Download Godot(GIT)
run: |
git clone https://github.com/godotengine/godot.git
cd godot
2021-03-22 14:49:15 +01:00
git checkout 3.x
2020-10-29 08:52:56 +01:00
cd ../
- name: Compile Godot
run: |
cd godot
scons p=x11 -j2 use_asan=yes use_ubsan=yes
2020-10-29 08:52:56 +01:00
cp bin/godot.x11.tools.64s ../
cd ../
rm -rf godot
- name: Open and close editor
2020-10-29 08:52:56 +01:00
run: |
2020-12-01 10:16:36 +01:00
DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s --audio-driver Dummy -e -q --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
2020-10-29 08:52:56 +01:00
misc/check_ci_log.py sanitizers_log.txt
- name: Test project
run: |
2020-12-01 10:16:36 +01:00
DRI_PRIME=0 xvfb-run ./godot.x11.tools.64s 60 --audio-driver Dummy --video-driver GLES3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
2020-10-29 08:52:56 +01:00
misc/check_ci_log.py sanitizers_log.txt
- uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: godot.x11.tools.64s
retention-days: 14