mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 01:38:13 +08:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: [ self-hosted, Windows ]
|
|
name: CI
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- 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 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo -S . -B build -G Ninja
|
|
|
|
- name: Build 64bit RelWithDebInfo DLL
|
|
run: cmake --build ./build --config RelWithDebInfo --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
|
|
del YimMenuV2-dev-*.pdb
|
|
ren YimMenuV2.dll YimMenuV2-dev-${{github.sha}}.dll
|
|
ren YimMenuV2.pdb YimMenuV2-dev-${{github.sha}}.pdb
|
|
working-directory: build/
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: RelWithDebInfo-Clang
|
|
path: |
|
|
build/YimMenuV2-dev-*.dll
|
|
build/YimMenuV2-dev-*.pdb
|