-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (58 loc) · 1.95 KB
/
linux-build.yml
File metadata and controls
72 lines (58 loc) · 1.95 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
name: Linux Build
on:
workflow_call:
jobs:
linux-build:
runs-on: [self-hosted, linux]
strategy:
fail-fast: false
matrix:
build_type: [Debug]
steps:
- uses: actions/checkout@v4
with:
submodules: false
repository: novusengine/Game
# - name: Setup premake
# uses: abel0b/setup-premake@v2.4
# with:
# version: "5.0.0-beta1"
# - name: Install dependencies
# run: |
# sudo apt-get update && sudo apt-get install -yq clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libvulkan-dev
# sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100
# - name: Install Vulkan SDK
# run: |
# wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
# sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
# sudo apt update
# sudo apt install vulkan-sdk
- name: Checkout submodules
run: |
git submodule update --init --recursive
# - name: Copy dxcompiler library to system
# run: |
# sudo cp /home/runner/work/Game/Game/Submodules/Engine/Dependencies/dxcompiler/lib/linux/libdxcompiler.so /usr/local/lib
- name: Run Premake
run: |
export VULKAN_SDK=/usr/include/vulkan
premake5 gmake2
- name: Build Meta Generator files
run: |
cd Build
make -j$(nproc) -k Gen-Meta
- name: Run Meta Generator
run: |
META_DIR=Submodules/Engine/Source/Meta/Meta
rm -rf $META_DIR/Generated
Build/Bin/Game/Engine/${{ matrix.build_type }}/TypeGenerator \
$META_DIR/Source \
$META_DIR/Generated
- name: Re-run Premake
run: |
export VULKAN_SDK=/usr/include/vulkan
premake5 gmake2
- name: Build
run: |
cd Build
make -j$(nproc) -k