Skip to content

Commit

Permalink
Adding GitHub Action script to also build Linux + Linux compile fix (#55
Browse files Browse the repository at this point in the history
)

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update CMakeLists.txt

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml
  • Loading branch information
nv-jdeligiannis authored Feb 7, 2023
1 parent 5ab2c84 commit 2d842e2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build NRD SDK
on:
pull_request:
branches:
- master
push:
branches:
- master
Expand Down Expand Up @@ -47,4 +50,42 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: NRD SDK
path: _NRD_SDK
path: _NRD_SDK

Build-Ubuntu:
runs-on: ubuntu-20.04
steps:
-
name : Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: '3.16.x'

- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Install Vulkan SDK
run: |
sudo apt install -y wget
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list
sudo apt update
sudo apt install -y vulkan-sdk
-
name: CMake Generate
run: |
mkdir "build"
cd "build"
cmake -G Ninja ..
cd ..
-
name: Compile
run: |
cd "build"
cmake --build .
cd ..
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ endif()

# Compile options
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(COMPILE_OPTIONS -Wextra)
set(COMPILE_OPTIONS -Wextra -msse4.1)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(COMPILE_OPTIONS -Wextra)
set(COMPILE_OPTIONS -Wextra -msse4.1)
elseif(MSVC)
set(COMPILE_OPTIONS /W4 /WX)
else()
Expand Down

0 comments on commit 2d842e2

Please sign in to comment.