修复一些错误,以在sk上运行 #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Test | |
on: | |
push: | |
branches: | |
- MiraiCQ-Cli | |
- MiraiCQ-Dev | |
paths: | |
- .github/workflows/** | |
- src/** | |
jobs: | |
test: | |
name: build project | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.3 | |
- name: Add nuget to PATH | |
uses: nuget/setup-nuget@v1 | |
- name: MSBuild | |
run: | | |
cd src/MiraiCQ | |
nuget restore MiraiCQ.sln | |
msbuild /property:Configuration=Release | |
del Release/*.exp | |
del Release/*.pdb | |
del Release/MiraiCQ.lib | |
del Release/libjpeg.lib | |
- name: upload file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: upload files | |
path: | |
src/MiraiCQ/Release |