Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiansongyu authored Nov 27, 2024
1 parent dc57605 commit a5fad94
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ jobs:
set LIB=%LIB%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\lib\x64
msbuild external-cheat-base.sln /p:Configuration=Release /p:Platform=x64 /p:WindowsTargetPlatformVersion=10.0.22000.0 /p:IncludePath="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\include;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt" /p:LibraryPath="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\lib\x64;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\ucrt\x64"
- name: Compress Release Artifacts
if: env.UPDATE_AVAILABLE == 'true'
run: |
powershell Compress-Archive -Path x64/Release/* -DestinationPath x64/Release/Release-Binaries.zip
- name: Upload artifacts
if: env.UPDATE_AVAILABLE == 'true'
uses: actions/upload-artifact@v3
with:
name: Release-Binaries
path: x64/Release/
path: x64/Release/Release-Binaries.zip

- name: Create Release
if: env.UPDATE_AVAILABLE == 'true'
Expand All @@ -101,6 +106,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: x64/Release/
asset_path: x64/Release/Release-Binaries.zip
asset_name: Release-Binaries.zip
asset_content_type: application/zip

0 comments on commit a5fad94

Please sign in to comment.