-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA workflows for building on Ubuntu
Building on Windows would require getting glslang binary from somewhere...
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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,34 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu] | ||
name: ${{matrix.os}} | ||
runs-on: ${{matrix.os}}-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: KhronosGroup/Vulkan-Headers | ||
ref: main | ||
path: Vulkan-Headers | ||
- name: install deps | ||
run: | | ||
sudo apt install -y glslang-tools ninja-build | ||
sudo apt install -y xorg-dev libwayland-dev libxkbcommon-dev wayland-protocols | ||
- name: cmake | ||
run: | | ||
export VULKAN_SDK=~/Vulkan-Headers | ||
cmake . -G Ninja | ||
- name: build | ||
run: ninja |