mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-06 01:23:35 +08:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
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: Setup premake
|
|
uses: abel0b/setup-premake@v2
|
|
with:
|
|
version: "5.0.0-beta1"
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
- name: Generate premake5 project
|
|
run: premake5 vs2019
|
|
shell: bash
|
|
|
|
- name: Build 64bit release DLL
|
|
run: |
|
|
msbuild /p:Configuration=Release /p:Platform=x64 BigBaseV2.sln -m /warnaserror
|
|
|
|
- name: Check if DLL got built
|
|
run: if (-Not (Test-Path -path "bin/Release/BigBaseV2.dll")) {throw 1}
|
|
|
|
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
|
|
run: ren BigBaseV2.dll YimMenu-dev-${{github.sha}}.dll
|
|
working-directory: bin/Release/
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: binary
|
|
path: |
|
|
bin/Release/YimMenu-dev-*.dll
|