Skip to content

Commit

Permalink
workflow apt reduction work, other os build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
platonvin committed Nov 26, 2024
1 parent 13ed72b commit ea288a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-linux-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Cache APT Packages - Clang, Ninja, GLFW-needed ones
uses: awalsh128/[email protected]
with:
packages: clang llvm lld clang-tools libclang-dev ninja-build install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config build-essential libxkbcommon-dev
execute_install_scripts: true # optional, set to true if you need to run install scripts
packages: clang llvm lld clang-tools libclang-dev build-essential ninja-build libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config libxkbcommon-dev libwayland-dev
execute_install_scripts: true # run install scripts

- name: Cache CMake and Build Files
uses: actions/cache@v3
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Install Clang LTO plugin (LLVMgold)
run: |
sudo apt-get install llvm-12-tools
sudo apt-get install llvm-18-tools
- name: Configure CMake to build examples
run: |
Expand All @@ -47,7 +47,7 @@ jobs:
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_LINKER=lld \
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld -flto" # Enable LTO and link using LLD
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" # just cause i want
- name: Build
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cmake-linux-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Cache APT Packages - GCC, Ninja, GLFW-needed ones
uses: awalsh128/[email protected]
with:
packages: gcc g++ libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config build-essential libxkbcommon-dev
execute_install_scripts: true # optional, set to true if you need to run install scripts
packages: gcc g++ build-essential ninja-build libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config libxkbcommon-dev libwayland-dev
execute_install_scripts: true # run install scripts

- name: Cache CMake and Build Files
uses: actions/cache@v3
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,25 @@ https://github.com/user-attachments/assets/ce7883c4-a706-406f-875c-fbf23d68020d

- **Vulkan support**

- on Linux, GLFW will ask you to install multiple different packages. You can do it in advance for Debian/Ubuntu/Mint:\
`sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config build-essential libxkbcommon-dev`
- on Linux, GLFW will ask you to install multiple different packages. You can do it in advance :
- for Debian / Ubuntu / Mint:\
`sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config build-essential libxkbcommon-dev libwayland-dev`
- for Fedore / Red Hat:\
`sudo dnf install wayland-devel libxkbcommon-devel libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel`
- for FreeBSD:\
`pkg install wayland libxkbcommon evdev-proto xorgproto`

<!--todo: why? libxkbcommon-dev libwayland-client0.1-0 libwayland-cursor0 libwayland-egl1.0-0 wayland-protocols libwayland-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev -->

### Build Instructions

1. Clone the repository :
1. Clone the repository with it's submodules:


```bash
git clone https://github.com/platonvin/lum.git
cd lum
git submodule update --init --recursive
```

2. Build using **CMake** :
Expand Down

0 comments on commit ea288a4

Please sign in to comment.