Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix for Ubuntu pipeline #82

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 37 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,80 +10,79 @@ jobs:
Build-Windows:
runs-on: windows-latest
steps:
-
name : Checkout
uses: actions/checkout@v3
- name : Checkout
uses: actions/checkout@v4
with:
submodules: true
-
name: Install dependencies
uses: crazy-max/ghaction-chocolatey@v1

- name: Install dependencies
uses: crazy-max/ghaction-chocolatey@v3
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
$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
run: |
$Env:VULKAN_SDK = "C:/VulkanSDK/"
$Env:Path += ";C:/VulkanSDK/Bin"
.\1-Deploy.bat
-
name: Build

- name: Build
run: |
$Env:VULKAN_SDK = "C:/VulkanSDK/"
$Env:Path += ";C:/VulkanSDK/Bin"
.\2-Build.bat
-
name: Prepare

- name: Prepare
run: |
&'.\3-Prepare NRI SDK.bat' --shaders
-
name: Upload
uses: actions/upload-artifact@v3

- name: Upload
uses: actions/upload-artifact@v4
with:
name: NRI SDK
path: _NRI_SDK

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

- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1.13
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.16.x'

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

- name: Install Vulkan SDK
- name: Install Vulkan
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 libwayland-dev
-
name: Deploy
sudo apt install -y wget
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 https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install -y vulkan-sdk libwayland-dev

- name: Deploy
run: |
mkdir "build"
cd "build"
cmake -G Ninja ..
cd ..
-
name: Build

- name: Build
run: |
cd "build"
cmake --build .
Expand Down