Skip to content

Commit

Permalink
ci: rework build workflow (#24)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
florianvazelle authored May 13, 2024
1 parent 2f1e66d commit 5e90e80
Show file tree
Hide file tree
Showing 61 changed files with 1,148 additions and 926 deletions.
31 changes: 0 additions & 31 deletions .clang-format

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ Procfile text
*.lib binary
*.exe binary
*.out binary
*.app binary
*.app binary
18 changes: 18 additions & 0 deletions .github/actions/install-clang/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Install Clang
description: Install Clang.

inputs:
clang_version:
description: The version of Clang.
required: true

runs:
using: "composite"
steps:
- name: Install Clang
if: runner.os == 'Linux'
shell: bash
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ inputs.clang_version }}
29 changes: 29 additions & 0 deletions .github/actions/install-vulkan/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Install Vulkan
description: Install Vulkan.

inputs:
vulkan_version:
description: The version of Vulkan.
required: true

runs:
using: "composite"
steps:
- name: Download Vulkan SDK
if: runner.os == 'Windows'
shell: powershell
run: Invoke-WebRequest "https://sdk.lunarg.com/sdk/download/${{ inputs.vulkan_version }}/windows/VulkanSDK-${{ inputs.vulkan_version }}-Installer.exe" -OutFile VulkanSDK.exe -v

- name: Install Vulkan SDK
if: runner.os == 'Windows'
shell: cmd
run: .\VulkanSDK.exe --accept-licenses --default-answer --confirm-command install

- name: Install Vulkan SDK
if: runner.os == 'Linux'
shell: bash
run: |
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-${{ inputs.vulkan_version }}-focal.list https://packages.lunarg.com/vulkan/${{ inputs.vulkan_version }}/lunarg-vulkan-${{ inputs.vulkan_version }}-focal.list
sudo apt update
sudo apt install -f vulkan-sdk
31 changes: 31 additions & 0 deletions .github/apt-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# build
ninja-build
cmake
doxygen

# ubuntu
freeglut3-dev
libxi-dev
libxinerama-dev
libxcb-cursor-dev
xorg-dev
libxcb-randr0-dev
libxcb-xtest0-dev
libxcb-xinerama0-dev
libxcb-shape0-dev
libxcb-xkb-dev
libxcb-render-util0-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-keysyms1-dev
libxcb-sync-dev
libxcb-xfixes0-dev
libx11-xcb-dev
libxcb-dri3-dev
libxcb-util-dev
libxcb-glx0-dev
libxcb-dri2-0-dev
libxcb-present-dev
libxcb-composite0-dev
libxcb-ewmh-dev
libxcb-res0-dev
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"conan": {
"enabled": true
}
}
}
Loading

0 comments on commit 5e90e80

Please sign in to comment.