shadPS4/.github/workflows/windows.yml

48 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-04-11 08:55:06 +02:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
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
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
2023-04-11 08:55:06 +02:00
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
2023-04-11 12:52:40 +02:00
with:
submodules: recursive
2023-04-11 08:55:06 +02:00
2023-05-11 14:04:07 +02:00
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
2023-07-23 18:55:08 +02:00
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -T ClangCL
2023-05-11 14:04:07 +02:00
2023-04-11 08:55:06 +02:00
- name: Build
2023-05-11 13:57:55 +02:00
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
2023-04-15 18:21:08 +02:00
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
2023-04-15 18:23:14 +02:00
with:
2023-04-15 18:21:08 +02:00
name: shadps4-win64
# A file, directory or wildcard pattern that describes what to upload
path: |
${{github.workspace}}/build/Release/shadps4.exe
${{github.workspace}}/build/Release/SDL3.dll
${{github.workspace}}/build/Release/libwinpthread-1.dll