Github CI (Actions) #27

Closed
opened 2026-11-26 09:09:12 +00:00 by github-bot · 2 comments
Owner

@⁠DartPower on GitHub · 2026-07-17 10:13 UTC · original

Hi, can you implement the CI script for autobuild?

**@⁠DartPower** on GitHub · 2026-07-17 10:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/27) Hi, can you implement the CI script for autobuild?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:09:12 +00:00
Author
Owner

@⁠DartPower on GitHub · 2026-07-17 13:02 UTC · original

name: Build KytyPS5 (Windows x64)

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build-windows:
    runs-on: windows-2022

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Setup MSVC Developer Command Prompt
        uses: ilammy/msvc-dev-cmd@v1
        with:
          arch: x64

      - name: Prepare Vulkan SDK (Headers only)
        uses: humbletim/[email protected]
        with:
          vulkan-query-version: 1.3.296.0
          vulkan-components: Vulkan-Headers
          vulkan-use-cache: true

      - name: Generate vulkan-1.lib from system DLL
        run: |
          $dllPath = "C:\Windows\System32\vulkan-1.dll"
          $defPath = "vulkan.def"
          $libDir = "$env:VULKAN_SDK\Lib"
          $libPath = "$libDir\vulkan-1.lib"

          Write-Host "Generating vulkan-1.lib from $dllPath..."
          New-Item -ItemType Directory -Force -Path $libDir

          $output = & dumpbin /exports $dllPath
          $exports = $output | Select-String -Pattern "^\s+\d+\s+[0-9A-Fa-f]+\s+(\S+)" | ForEach-Object { $_.Matches.Groups[1].Value }

          Set-Content -Path $defPath -Value "LIBRARY vulkan-1.dll"
          Add-Content -Path $defPath -Value "EXPORTS"
          foreach ($exp in $exports) {
            Add-Content -Path $defPath -Value $exp
          }

          & lib /def:$defPath /out:$libPath /machine:x64
          Write-Host "Generated $libPath successfully."
        shell: pwsh

      - name: Fetch and install Vulkan Utility Libraries Headers
        run: |
          # Клонируем репозиторий с тегом, соответствующим версии SDK
          git clone --depth 1 -b vulkan-sdk-1.3.296.0 https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git _vulkan_util
          
          # Копируем недостающие заголовки (включая vk_enum_string_helper.h) в VULKAN_SDK
          $dest = "$env:VULKAN_SDK\include\vulkan"
          New-Item -ItemType Directory -Force -Path $dest
          Copy-Item -Path "_vulkan_util\include\vulkan\*" -Destination $dest -Recurse -Force
          
          Write-Host "Vulkan Utility Libraries headers copied successfully."
        shell: pwsh

      - name: Install Qt 6
        uses: jurplel/install-qt-action@v4
        with:
          version: '6.8.*'
          host: 'windows'
          target: 'desktop'
          arch: 'win64_msvc2022_64'

      - name: Configure CMake
        run: |
          cmake -S src -B _Build/windows -G Ninja `
            -DCMAKE_BUILD_TYPE=Release `
            -DCMAKE_C_COMPILER=clang-cl `
            -DCMAKE_CXX_COMPILER=clang-cl `
            -DCMAKE_PREFIX_PATH="$env:Qt6_DIR"
        shell: pwsh

      - name: Build Launcher
        run: cmake --build _Build/windows --target launcher
        shell: pwsh

      - name: Stage Installation
        run: cmake --install _Build/windows --prefix _Build/windows/install
        shell: pwsh

      - name: Upload Build Artifact
        uses: actions/upload-artifact@v4
        with:
          name: KytyPS5-windows-x64
          path: _Build/windows/install/
          if-no-files-found: error

But have a errors... some my tries here:
https://github.com/dpteam/KytyPS5

**@⁠DartPower** on GitHub · 2026-07-17 13:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/27#issuecomment-5003559865) ``` name: Build KytyPS5 (Windows x64) on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build-windows: runs-on: windows-2022 steps: - name: Checkout repository uses: actions/checkout@v4 with: submodules: recursive - name: Setup MSVC Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1 with: arch: x64 - name: Prepare Vulkan SDK (Headers only) uses: humbletim/[email protected] with: vulkan-query-version: 1.3.296.0 vulkan-components: Vulkan-Headers vulkan-use-cache: true - name: Generate vulkan-1.lib from system DLL run: | $dllPath = "C:\Windows\System32\vulkan-1.dll" $defPath = "vulkan.def" $libDir = "$env:VULKAN_SDK\Lib" $libPath = "$libDir\vulkan-1.lib" Write-Host "Generating vulkan-1.lib from $dllPath..." New-Item -ItemType Directory -Force -Path $libDir $output = & dumpbin /exports $dllPath $exports = $output | Select-String -Pattern "^\s+\d+\s+[0-9A-Fa-f]+\s+(\S+)" | ForEach-Object { $_.Matches.Groups[1].Value } Set-Content -Path $defPath -Value "LIBRARY vulkan-1.dll" Add-Content -Path $defPath -Value "EXPORTS" foreach ($exp in $exports) { Add-Content -Path $defPath -Value $exp } & lib /def:$defPath /out:$libPath /machine:x64 Write-Host "Generated $libPath successfully." shell: pwsh - name: Fetch and install Vulkan Utility Libraries Headers run: | # Клонируем репозиторий с тегом, соответствующим версии SDK git clone --depth 1 -b vulkan-sdk-1.3.296.0 https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git _vulkan_util # Копируем недостающие заголовки (включая vk_enum_string_helper.h) в VULKAN_SDK $dest = "$env:VULKAN_SDK\include\vulkan" New-Item -ItemType Directory -Force -Path $dest Copy-Item -Path "_vulkan_util\include\vulkan\*" -Destination $dest -Recurse -Force Write-Host "Vulkan Utility Libraries headers copied successfully." shell: pwsh - name: Install Qt 6 uses: jurplel/install-qt-action@v4 with: version: '6.8.*' host: 'windows' target: 'desktop' arch: 'win64_msvc2022_64' - name: Configure CMake run: | cmake -S src -B _Build/windows -G Ninja ` -DCMAKE_BUILD_TYPE=Release ` -DCMAKE_C_COMPILER=clang-cl ` -DCMAKE_CXX_COMPILER=clang-cl ` -DCMAKE_PREFIX_PATH="$env:Qt6_DIR" shell: pwsh - name: Build Launcher run: cmake --build _Build/windows --target launcher shell: pwsh - name: Stage Installation run: cmake --install _Build/windows --prefix _Build/windows/install shell: pwsh - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: name: KytyPS5-windows-x64 path: _Build/windows/install/ if-no-files-found: error ``` But have a errors... some my tries here: https://github.com/dpteam/KytyPS5
Author
Owner

@⁠DartPower on GitHub · 2026-07-17 13:03 UTC · original

UPD: i think its better
#29
But anyway thanks a lot who see this :D

**@⁠DartPower** on GitHub · 2026-07-17 13:03 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/27#issuecomment-5003566865) UPD: i think its better https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/29 But anyway thanks a lot who see this :D
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#27
No description provided.