Files
YimMenuV2/.github/workflows/ci.yml
T
2025-03-23 18:54:44 -04:00

40 lines
1.0 KiB
YAML

# TODO: use Clang instead of MSVC
name: CI
on: [ push, pull_request ]
jobs:
ci:
runs-on: [ self-hosted, Windows ]
name: CI
steps:
- uses: actions/checkout@v3
- name: Check CMake version
run: cmake --version
- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Generate CMake project
run: cmake -D CMAKE_BUILD_TYPE=Release -S. -Bbuild -G Ninja
- name: Build 64bit release DLL
run: cmake --build ./build --config Release --target YimMenuV2 --
- name: Check if DLL got built
run: if (-Not (Test-Path -path "build/YimMenuV2.dll")) {throw 1}
- name: Rename DLL to YimMenuV2-dev-{GITHUB_SHA}.dll
run: |
del YimMenuV2-dev-*.dll
ren YimMenuV2.dll YimMenuV2-dev-${{github.sha}}.dll
working-directory: build/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: binary
path: build/YimMenuV2-dev-*.dll