-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
23 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
linux-build: | ||
runs-on: ubuntu-22.04 | ||
runs-on: [self-hosted, linux] | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -16,39 +16,37 @@ jobs: | |
submodules: false | ||
repository: novusengine/Game | ||
|
||
- name: Setup premake | ||
uses: abel0b/[email protected] | ||
with: | ||
version: "5.0.0-beta1" | ||
# - 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 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: 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: 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 | ||
export LD_LIBRARY_PATH=/home/runner/work/Game/Game/Submodules/Engine/Dependencies/dxcompiler/lib/linux:$LD_LIBRARY_PATH | ||
premake5 gmake2 | ||
- name: Build | ||
run: | | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
sudo ldconfig /usr/local/lib | ||
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
win-build: | ||
runs-on: self-hosted | ||
runs-on: [self-hosted, windows] | ||
|
||
strategy: | ||
fail-fast: false | ||
|
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