40 lines
989 B
YAML
Raw Normal View History

2022-03-04 18:12:49 +02:00
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: [self-hosted, Windows]
2022-03-04 18:12:49 +02:00
name: CI
steps:
2022-11-11 12:34:32 +02:00
- uses: actions/checkout@v3
2022-03-04 18:12:49 +02:00
- name: Check CMake version
run: cmake --version
2022-03-04 18:12:49 +02:00
- 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
2022-03-04 18:12:49 +02:00
- name: Build 64bit release DLL
run: cmake --build ./build --config Release --target YimMenu --
2022-03-04 18:12:49 +02:00
- name: Check if DLL got built
run: if (-Not (Test-Path -path "build/YimMenu.dll")) {throw 1}
2022-07-15 19:13:09 +03:00
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
2022-11-11 12:34:32 +02:00
run: |
del YimMenu-dev-*.dll
2022-11-11 12:34:32 +02:00
ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll
working-directory: build/
2022-07-15 19:13:09 +03:00
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: binary
path: build/YimMenu-dev-*.dll