Skip to content

Commit 9cfabca

Browse files
authored
Added github linux build job (#8)
1 parent 8a4f4ba commit 9cfabca

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

.github/workflows/test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,33 @@ jobs:
5757
name: lucid-release-build
5858
path: lucid-raster
5959

60+
build-linux:
61+
runs-on: ubuntu-22.04
62+
steps:
63+
- uses: actions/checkout@v4
64+
with:
65+
submodules: 'recursive'
66+
67+
- name: Install Dependencies
68+
run: |
69+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
70+
sudo apt update
71+
sudo apt-get install libsdl2-dev libfreetype-dev libvorbis-dev libogg-dev libopenal-dev libdwarf-dev libelf-dev
72+
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
73+
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
74+
sudo apt update
75+
sudo apt install libvulkan-dev shaderc glslang-dev vulkan-headers
76+
77+
- name: Build libfwk
78+
run: |
79+
cd libfwk
80+
make -j8 lib MODE=devel FWK_GEOM=disabled
81+
82+
- name: Build Lucid
83+
run: |
84+
make -j8 lucid
85+
86+
6087
check-formatting:
6188
runs-on: ubuntu-22.04
6289
steps:

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ BUILD_SUBDIRS =
2424

2525
ifndef JUNK_GATHERING
2626
_dummy := $(shell mkdir -p $(SUBDIRS))
27-
_dummy := $(shell mkdir -p $(addprefix $(BUILD_DIR)/,$(BUILD_SUBDIRS)))
2827
endif
2928

3029
# --- List of source files ------------------------------------------------------------------------
3130

3231
SRC := lucid_app lucid_renderer simple_renderer pbr_renderer scene scene_setup scene_convert \
33-
shading texture_atlas wavefront_obj meshlet quad_generator tri_optimizer path_tracer bvh
32+
shading texture_atlas wavefront_obj meshlet quad_generator tri_optimizer path_tracer \
33+
extern_impl
3434
PROGRAM_SRC := lucid
3535
ALL_SRC := $(PROGRAM_SRC) $(SRC)
3636

src/extern_impl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "../extern/stb_image_write.h"
77

88
#define TINYEXR_USE_MINIZ 0
9+
#define TINYEXR_USE_OPENMP 0
910
#define TINYEXR_USE_STB_ZLIB 1
1011
#define TINYEXR_IMPLEMENTATION
1112

src/lucid_base.h

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <fwk/math_base.h>
1212
#include <fwk/sys/expected.h>
1313

14+
using namespace fwk;
15+
1416
#define ORDER_BY FWK_ORDER_BY
1517

1618
FilePath mainPath();

src/lucid_pch.h

-2
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@
2323

2424
#define DUMP FWK_DUMP
2525
#define FATAL FWK_FATAL
26-
27-
using namespace fwk;

0 commit comments

Comments
 (0)