2022-03-04 18:12:49 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: windows-latest
|
|
|
|
name: CI
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2022-11-08 21:08:58 +00:00
|
|
|
- name: Check CMake version
|
|
|
|
run: cmake --version
|
2022-03-04 18:12:49 +02:00
|
|
|
|
|
|
|
- name: Add msbuild to PATH
|
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
|
2022-11-08 21:08:58 +00:00
|
|
|
- name: Generate CMake project
|
|
|
|
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release
|
2022-03-04 18:12:49 +02:00
|
|
|
|
|
|
|
- name: Build 64bit release DLL
|
2022-11-08 21:08:58 +00:00
|
|
|
run: cmake --build build --config Release --target ALL_BUILD
|
2022-03-04 18:12:49 +02:00
|
|
|
|
|
|
|
- name: Check if DLL got built
|
2022-11-08 21:08:58 +00:00
|
|
|
run: if (-Not (Test-Path -path "build/Release/YimMenu.dll")) {throw 1}
|
2022-07-15 19:13:09 +03:00
|
|
|
|
|
|
|
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
|
2022-11-08 21:08:58 +00:00
|
|
|
run: ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll
|
|
|
|
working-directory: build/Release/
|
2022-07-15 19:13:09 +03:00
|
|
|
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: binary
|
2022-11-08 21:08:58 +00:00
|
|
|
path: build/Release/YimMenu-dev-*.dll
|