mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-10 06:30:08 +00:00
86b93be4e6
The publication of Vulkan SC (https://www.khronos.org/news/press/khronos-releases-vulkan-safety-critical-1.0-specification-to-deliver-safety-critical-graphics-compute) confused the update job since it was the most recent tag. Preliminary solution: only accept tags that match `v1\.`.
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Update Vulkan-Headers PR
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # every day at midnight
|
|
|
|
jobs:
|
|
update-vulkan-headers:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
build_type: [Debug]
|
|
cxx_compiler: [g++-9]
|
|
cxx_standard: [11]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install libraries
|
|
run: sudo apt install clang-format-12
|
|
|
|
- name: Update Submodules
|
|
run: |
|
|
git submodule update --init --recursive
|
|
cd Vulkan-Headers
|
|
VK_HEADER_GIT_TAG=$(git describe --tags $(git rev-list --tags | grep 'v\d\.' | head -n1))
|
|
echo "New revision of Vulkan-Headers: $VK_HEADER_GIT_TAG"
|
|
git checkout $VK_HEADER_GIT_TAG
|
|
echo "VK_HEADER_GIT_TAG=$VK_HEADER_GIT_TAG" >> $GITHUB_ENV
|
|
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build
|
|
-DSAMPLES_BUILD=OFF
|
|
-DTESTS_BUILD=OFF
|
|
-DVULKAN_HPP_RUN_GENERATOR=ON
|
|
-DCMAKE_CXX_COMPILER=${{matrix.cxx_compiler}}
|
|
-DCMAKE_CXX_STANDARD=${{matrix.cxx_standard}}
|
|
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
|
|
|
|
- name: Commit changes
|
|
run: |
|
|
git config user.name "GitHub"
|
|
git config user.email "noreply@github.com"
|
|
git add Vulkan-Headers vulkan
|
|
rm -rf build
|
|
git commit -m "Update Vulkan-Headers to $VK_HEADER_GIT_TAG" || echo 'No commit necessary!'
|
|
git clean -xf
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: Update Vulkan-Headers to ${{ env.VK_HEADER_GIT_TAG }}
|
|
title: Update Vulkan-Headers to ${{ env.VK_HEADER_GIT_TAG }}
|
|
branch: update-vulkan-headers-pr
|
|
base: ${{ github.head_ref }}
|
|
body: |
|
|
Please close and reopen this PR to trigger the CI!
|