-
Notifications
You must be signed in to change notification settings - Fork 269
72 lines (64 loc) · 2.64 KB
/
check_api_sync.yml
File metadata and controls
72 lines (64 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This periodically checks to see if we've drifted out of sync with master by running a compile from the latest,
# with only the gdsdecomp module enabled.
name: Check sync with Godot master API
# runs every day at midnight GMT
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '.github/workflows/check_api_sync.yml'
workflow_dispatch:
env:
GODOT_BASE_BRANCH: master
GDSDECOMP_BASE_BRANCH: master
# Temp fix for check_api_sync, `disable_3d=yes` currently causes the build to fail on linux
SCONSFLAGS: verbose=yes warnings=all werror=no module_text_server_fb_enabled=yes minizip=yes debug_symbols=no deprecated=yes
SCONSFLAGS_TEMPLATE: no_editor_splash=yes module_camera_enabled=no module_mbedtls_enabled=no module_enet_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_noise_enabled=no module_websocket_enabled=no use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes module_csg_enabled=yes module_gridmap_enabled=yes disable_3d=no
jobs:
check:
name: "Test master API Sync"
runs-on: "ubuntu-20.04"
strategy:
fail-fast: false
matrix:
include:
- cache-name: api-sync-test
target: template_debug
platform: linuxbsd
tests: false
steps:
- name: checkout-godot
uses: actions/checkout@v3
with:
repository: godotengine/godot
# check out latest from master branch
ref: ${{env.GODOT_BASE_BRANCH}}
- name: checkout-gdsdecomp
uses: actions/checkout@v3
with:
path: modules/gdsdecomp
ref: ${{env.GDSDECOMP_BASE_BRANCH}}
# Install all packages (except scons)
- name: Configure dependencies
run: |
sudo apt-get update
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 clang-format-8
sudo apt-get install libwayland-bin
- name: Setup Godot build cache
uses: ./.github/actions/godot-cache
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Setup python and scons
uses: ./.github/actions/godot-deps
- name: Compilation
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} ${{ env.SCONSFLAGS_TEMPLATE }}
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: 4096