-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Linux build workflow and fix Linux compatibility (#3)
* Update Engine submodule and add Linux workflow files * Add SetLibDirs to premake util * Fix upper/lowercase issue in dependencies * Define postgres library and include for libpq --------- Co-authored-by: NixAJ <[email protected]>
- Loading branch information
Showing
8 changed files
with
98 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Linux Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
linux-build: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
repository: novusengine/Servers | ||
|
||
- name: Setup premake | ||
uses: abel0b/[email protected] | ||
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: Run Premake | ||
run: | | ||
export VULKAN_SDK=/usr/include/vulkan | ||
premake5 gmake2 | ||
- name: Build | ||
run: | | ||
cd Build | ||
make -j 4 -k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: PR Linux Build | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [ labeled ] | ||
|
||
jobs: | ||
call-linux-build: | ||
if: ${{ github.event.label.name == 'build-linux' }} | ||
name: Linux Build | ||
uses: ./.github/workflows/linux-build.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Engine
updated
from 402e1a to a5a1b3