2024-02-23 22:32:32 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 shadPS4 Emulator Project
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-04-11 08:55:06 +02:00
|
|
|
|
2023-04-11 09:20:58 +02:00
|
|
|
name: Windows
|
2023-04-11 08:55:06 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
env:
|
2023-05-11 13:57:55 +02:00
|
|
|
BUILD_TYPE: Release
|
2023-04-11 08:55:06 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2024-05-08 13:17:41 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-04-11 12:52:40 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2024-06-23 08:57:32 +02:00
|
|
|
|
2023-05-11 14:04:07 +02:00
|
|
|
- name: Configure CMake
|
2023-07-23 18:55:08 +02:00
|
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -T ClangCL
|
2024-08-08 17:19:44 +02:00
|
|
|
|
2023-04-11 08:55:06 +02:00
|
|
|
- name: Build
|
2024-02-27 23:10:34 +01:00
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
|
2024-08-08 17:19:44 +02:00
|
|
|
|
|
|
|
- name: Upload executable
|
2024-05-08 13:17:41 +02:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-04-15 18:23:14 +02:00
|
|
|
with:
|
2024-08-18 17:30:26 +02:00
|
|
|
name: shadps4-win64-sdl
|
2023-05-11 14:26:21 +02:00
|
|
|
path: |
|
2024-05-18 19:05:18 +02:00
|
|
|
${{github.workspace}}/build/Release/shadPS4.exe
|