mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-06 01:23:35 +08:00
bc05ecd78c
Co-authored-by: tupoy-ya <tupoy-ya@users.noreply.github.com>
38 lines
1002 B
YAML
38 lines
1002 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: windows-latest
|
|
name: CI
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Check CMake version
|
|
run: cmake --version
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
- name: Generate CMake project
|
|
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release
|
|
|
|
- name: Build 64bit release DLL
|
|
run: cmake --build build --config Release --target ALL_BUILD
|
|
|
|
- name: Check if DLL got built
|
|
run: if (-Not (Test-Path -path "build/Release/YimMenu.dll")) {throw 1}
|
|
|
|
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
|
|
run: ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll
|
|
working-directory: build/Release/
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: binary
|
|
path: build/Release/YimMenu-dev-*.dll
|