41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Windows test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository with submodules
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 1
|
|
|
|
- name: Проверка содержимого glfw
|
|
run: dir glfw
|
|
|
|
- name: Install Vulkan SDK 1.4.321.1
|
|
run: |
|
|
Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.4.321.1/windows/vulkan-sdk-1.4.321.1-setup.exe -OutFile vulkan-sdk-setup.exe
|
|
Start-Process -FilePath vulkan-sdk-setup.exe -ArgumentList '/S' -Wait
|
|
shell: powershell
|
|
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
|
|
# - name: Test
|
|
# working-directory: ${{github.workspace}}/build
|
|
# run: ctest -C ${{env.BUILD_TYPE}}
|