Skip to content

Commit 5e90e80

Browse files
ci: rework build workflow (#24)
* ci: use just to uniformize commands * ci: test with latest compilers * ci: better on statement * style: apply new formatters * ci: add check to ensure formatting * ci: add a key for cache * fix ci
1 parent 2f1e66d commit 5e90e80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1148
-926
lines changed

.clang-format

Lines changed: 0 additions & 31 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,4 @@ Procfile text
211211
*.lib binary
212212
*.exe binary
213213
*.out binary
214-
*.app binary
214+
*.app binary
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Install Clang
2+
description: Install Clang.
3+
4+
inputs:
5+
clang_version:
6+
description: The version of Clang.
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Install Clang
13+
if: runner.os == 'Linux'
14+
shell: bash
15+
run: |
16+
wget https://apt.llvm.org/llvm.sh
17+
chmod +x llvm.sh
18+
sudo ./llvm.sh ${{ inputs.clang_version }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Install Vulkan
2+
description: Install Vulkan.
3+
4+
inputs:
5+
vulkan_version:
6+
description: The version of Vulkan.
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Download Vulkan SDK
13+
if: runner.os == 'Windows'
14+
shell: powershell
15+
run: Invoke-WebRequest "https://sdk.lunarg.com/sdk/download/${{ inputs.vulkan_version }}/windows/VulkanSDK-${{ inputs.vulkan_version }}-Installer.exe" -OutFile VulkanSDK.exe -v
16+
17+
- name: Install Vulkan SDK
18+
if: runner.os == 'Windows'
19+
shell: cmd
20+
run: .\VulkanSDK.exe --accept-licenses --default-answer --confirm-command install
21+
22+
- name: Install Vulkan SDK
23+
if: runner.os == 'Linux'
24+
shell: bash
25+
run: |
26+
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
27+
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-${{ inputs.vulkan_version }}-focal.list https://packages.lunarg.com/vulkan/${{ inputs.vulkan_version }}/lunarg-vulkan-${{ inputs.vulkan_version }}-focal.list
28+
sudo apt update
29+
sudo apt install -f vulkan-sdk

.github/apt-requirements.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# build
2+
ninja-build
3+
cmake
4+
doxygen
5+
6+
# ubuntu
7+
freeglut3-dev
8+
libxi-dev
9+
libxinerama-dev
10+
libxcb-cursor-dev
11+
xorg-dev
12+
libxcb-randr0-dev
13+
libxcb-xtest0-dev
14+
libxcb-xinerama0-dev
15+
libxcb-shape0-dev
16+
libxcb-xkb-dev
17+
libxcb-render-util0-dev
18+
libxcb-icccm4-dev
19+
libxcb-image0-dev
20+
libxcb-keysyms1-dev
21+
libxcb-sync-dev
22+
libxcb-xfixes0-dev
23+
libx11-xcb-dev
24+
libxcb-dri3-dev
25+
libxcb-util-dev
26+
libxcb-glx0-dev
27+
libxcb-dri2-0-dev
28+
libxcb-present-dev
29+
libxcb-composite0-dev
30+
libxcb-ewmh-dev
31+
libxcb-res0-dev

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"conan": {
33
"enabled": true
44
}
5-
}
5+
}

0 commit comments

Comments
 (0)