summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorrealstealthninja <68815218+realstealthninja@users.noreply.github.com>2026-09-22 06:18:45 +0530
committerrealstealthninja <68815218+realstealthninja@users.noreply.github.com>2026-09-22 06:18:45 +0530
commite84968fc59975fd4ca0281ed551afbfa04930fae (patch)
tree5de662387405165d30f2c5e968a3dde6b7538d69
parent12fccb7175d0b76dc813689dc32050b628f9adb2 (diff)
ci: make linux compile faster
-rw-r--r--.github/workflows/cmake.yml104
1 files changed, 52 insertions, 52 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index c6847a9..3676fcf 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -2,9 +2,9 @@ name: CMake
on:
push:
- branches: [ '*' ]
+ branches: ["*"]
pull_request:
- branches: [ master ]
+ branches: [master]
workflow_dispatch:
jobs:
@@ -12,25 +12,25 @@ jobs:
runs-on: windows-latest
timeout-minutes: 4
steps:
- - uses: actions/checkout@v4
- with:
- submodules: 'true'
- - name: Install Vulkan SDK
- uses: humbletim/setup-vulkan-sdk@v1.2.1
- with:
- vulkan-query-version: 1.4.304.1
- vulkan-components: Vulkan-Headers, Vulkan-Loader
- vulkan-use-cache: false
- - name: configure
- run: cmake -B build_win64 -G "Visual Studio 18 2026" -A x64 -DVKVG_RECORDING=false -DVKVG_SVG=false -DGIT_SUBMODULE=true -DBUILD_SHARED_LIBS=OFF
- - name: build win64
- run: cmake --build build_win64 --parallel
+ - uses: actions/checkout@v4
+ with:
+ submodules: "true"
+ - name: Install Vulkan SDK
+ uses: humbletim/setup-vulkan-sdk@v1.2.1
+ with:
+ vulkan-query-version: 1.4.304.1
+ vulkan-components: Vulkan-Headers, Vulkan-Loader
+ vulkan-use-cache: false
+ - name: configure
+ run: cmake -B build_win64 -G "Visual Studio 18 2026" -A x64 -DVKVG_RECORDING=false -DVKVG_SVG=false -DGIT_SUBMODULE=true -DBUILD_SHARED_LIBS=OFF
+ - name: build win64
+ run: cmake --build build_win64 --parallel
linux_jorb:
runs-on: ubuntu-latest
strategy:
matrix:
- build_config: ['Release']
+ build_config: ["Release"]
defaults:
run:
shell: bash
@@ -39,29 +39,29 @@ jobs:
VULKAN_LAYER_PATH: ${{ github.workspace }}/VulkanSDK/x86_64/share/vulkan/explicit_layer.d"
steps:
- - uses: actions/checkout@v4
- with:
- repository: 'krOoze/vk_sdk_lite'
- path: 'VulkanSDK'
- ref: linux
- persist-credentials: false
- - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
- - run: sudo apt update && sudo apt install xorg-dev libglfw3-dev xxd
- - uses: actions/checkout@v4
- with:
- path: 'source'
- persist-credentials: false
- submodules: 'true'
- - run: mkdir -p source/build
- - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} -G "Unix Makefiles" .. -DVKVG_RECORDING=false -DVKVG_SVG=false
- working-directory: source/build
- - run: cmake --build . --config ${{ matrix.build_config }}
- working-directory: source/build
+ - uses: actions/checkout@v4
+ with:
+ repository: "krOoze/vk_sdk_lite"
+ path: "VulkanSDK"
+ ref: linux
+ persist-credentials: false
+ - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
+ - run: sudo apt update && sudo apt install xorg-dev libglfw3-dev xxd
+ - uses: actions/checkout@v4
+ with:
+ path: "source"
+ persist-credentials: false
+ submodules: "true"
+ - run: mkdir -p source/build
+ - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} -G "Unix Makefiles" .. -DVKVG_RECORDING=false -DVKVG_SVG=false
+ working-directory: source/build
+ - run: cmake --build . --config ${{ matrix.build_config }} -j $(nproc)
+ working-directory: source/build
mac_jorb:
runs-on: macos-latest
strategy:
matrix:
- build_config: ['Release']
+ build_config: ["Release"]
defaults:
run:
shell: bash
@@ -69,20 +69,20 @@ jobs:
VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/macOS
steps:
- - uses: actions/checkout@v4
- with:
- repository: 'krOoze/vk_sdk_lite'
- path: 'VulkanSDK'
- ref: macos
- persist-credentials: false
- - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v4
- with:
- submodules: 'true'
- path: 'source'
- persist-credentials: false
- - run: mkdir -p source/build
- - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} .. -DVKVG_RECORDING=false -DVKVG_SVG=false
- working-directory: source/build
- - run: cmake --build . --config ${{ matrix.build_config }}
- working-directory: source/build
+ - uses: actions/checkout@v4
+ with:
+ repository: "krOoze/vk_sdk_lite"
+ path: "VulkanSDK"
+ ref: macos
+ persist-credentials: false
+ - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH
+ - uses: actions/checkout@v4
+ with:
+ submodules: "true"
+ path: "source"
+ persist-credentials: false
+ - run: mkdir -p source/build
+ - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} .. -DVKVG_RECORDING=false -DVKVG_SVG=false
+ working-directory: source/build
+ - run: cmake --build . --config ${{ matrix.build_config }}
+ working-directory: source/build