Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added github linux build job #8

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,33 @@ jobs:
name: lucid-release-build
path: lucid-raster

build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install Dependencies
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt update
sudo apt-get install libsdl2-dev libfreetype-dev libvorbis-dev libogg-dev libopenal-dev libdwarf-dev libelf-dev
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 libvulkan-dev shaderc glslang-dev vulkan-headers

- name: Build libfwk
run: |
cd libfwk
make -j8 lib MODE=devel FWK_GEOM=disabled

- name: Build Lucid
run: |
make -j8 lucid


check-formatting:
runs-on: ubuntu-22.04
steps:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ BUILD_SUBDIRS =

ifndef JUNK_GATHERING
_dummy := $(shell mkdir -p $(SUBDIRS))
_dummy := $(shell mkdir -p $(addprefix $(BUILD_DIR)/,$(BUILD_SUBDIRS)))
endif

# --- List of source files ------------------------------------------------------------------------

SRC := lucid_app lucid_renderer simple_renderer pbr_renderer scene scene_setup scene_convert \
shading texture_atlas wavefront_obj meshlet quad_generator tri_optimizer path_tracer bvh
shading texture_atlas wavefront_obj meshlet quad_generator tri_optimizer path_tracer \
extern_impl
PROGRAM_SRC := lucid
ALL_SRC := $(PROGRAM_SRC) $(SRC)

Expand Down
1 change: 1 addition & 0 deletions src/extern_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "../extern/stb_image_write.h"

#define TINYEXR_USE_MINIZ 0
#define TINYEXR_USE_OPENMP 0
#define TINYEXR_USE_STB_ZLIB 1
#define TINYEXR_IMPLEMENTATION

Expand Down
2 changes: 2 additions & 0 deletions src/lucid_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <fwk/math_base.h>
#include <fwk/sys/expected.h>

using namespace fwk;

#define ORDER_BY FWK_ORDER_BY

FilePath mainPath();
Expand Down
2 changes: 0 additions & 2 deletions src/lucid_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@

#define DUMP FWK_DUMP
#define FATAL FWK_FATAL

using namespace fwk;