Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Sep 1, 2023
1 parent c20d25a commit 2233223
Showing 1 changed file with 27 additions and 35 deletions.
62 changes: 27 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,82 +10,74 @@ jobs:
Build-Windows:
runs-on: windows-latest
steps:
-
name : Checkout
- name : Checkout
uses: actions/checkout@v3
with:
submodules: true
-
name: Install dependencies
- name: Install dependencies
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install windows-sdk-10.0 cmake -y
-
name: Install Vulkan
- name: Install Vulkan
run: |
$ver = (Invoke-WebRequest -Uri "https://vulkan.lunarg.com/sdk/latest.json" | ConvertFrom-Json).windows
echo Vulkan SDK version $ver
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/$ver/windows/VulkanSDK-$ver-Installer.exe" -OutFile VulkanSDK.exe
echo Downloaded
.\VulkanSDK.exe --root C:\VulkanSDK --accept-licenses --default-answer --confirm-command install
-
name: Deploy NRD SDK
- name: CMake Generate
run: |
$Env:VULKAN_SDK = "C:/VulkanSDK/"
$Env:Path += ";C:/VulkanSDK/Bin"
.\1-Deploy.bat
-
name: Build NRD SDK
mkdir build
cd build
cmake ..
cd ..
- name: Compile
run: |
$Env:VULKAN_SDK = "C:/VulkanSDK/"
$Env:Path += ";C:/VulkanSDK/Bin"
.\2-Build.bat
-
name: Prepare NRD SDK
run: |
&'.\3-Prepare NRD SDK.bat' --shaders
-
name: Upload NRD SDK as artefact
cd "build"
cmake --build . --config Release
cd ..
- name: Upload NRD SDK as artefact
uses: actions/upload-artifact@v3
with:
name: NRD SDK
path: _NRD_SDK
path: build/

Build-Ubuntu:
runs-on: ubuntu-20.04
steps:
-
name : Checkout
- 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
- name: CMake Generate
run: |
mkdir "build"
cd "build"
cmake -G Ninja ..
mkdir build
cd build
cmake ..
cd ..
-
name: Compile
- name: Compile
run: |
cd "build"
cmake --build .
cd build
cmake --build . --config Release
cd ..
- name: Upload NRD SDK as artefact
uses: actions/upload-artifact@v3
with:
name: NRD SDK
path: build/

0 comments on commit 2233223

Please sign in to comment.