Attempt 7

This commit is contained in:
SuperSonic16 2025-01-22 06:48:28 +11:00
parent 5acb6d2f65
commit c9887f1b33

View file

@ -28,24 +28,50 @@ jobs:
token: ${{ secrets.ASSET_REPO_TOKEN }} token: ${{ secrets.ASSET_REPO_TOKEN }}
path: .\private path: .\private
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ccache-${{ runner.os }}
- name: Cache vcpkg
uses: actions/cache@v4
with:
path: |
./thirdparty/vcpkg/downloads
./thirdparty/vcpkg/packages
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
- name: Install dependencies - name: Install dependencies
run: |- run: |
choco install ninja choco install ninja
Remove-Item -Path "C:\ProgramData\Chocolatey\bin\ccache.exe" -Force -ErrorAction SilentlyContinue
- name: Configure Developer Command Prompt - name: Configure Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
- name: Prepare Project - name: Prepare Project
run: copy .\private\* .\UnleashedRecompLib\private run: |
$commitMessage = git log -1 --pretty=%s
Add-Content -Path $env:GITHUB_ENV -Value "commit_message=$commitMessage"
copy .\private\* .\UnleashedRecompLib\private
- name: Configure Project - name: Configure Project
run: cmake . --preset ${{ env.CMAKE_PRESET }} -DSDL2MIXER_VORBIS=VORBISFILE run: cmake . --preset ${{ env.CMAKE_PRESET }} -DSDL2MIXER_VORBIS=VORBISFILE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
- name: Build Project - name: Build Project
run: cmake --build .\out\build\${{ env.CMAKE_PRESET }} run: cmake --build .\out\build\${{ env.CMAKE_PRESET }} --target UnleashedRecomp
- name: Pack Release - name: Pack Release
run: Compress-Archive -Path .\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\* -DestinationPath .\UnleashedRecomp-Windows.zip run: |
New-Item -ItemType Directory -Path .\release
New-Item -ItemType Directory -Path .\release\D3D12
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\D3D12\D3D12Core.dll" -Destination ".\release\D3D12\D3D12Core.dll"
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\dxcompiler.dll" -Destination ".\release\dxcompiler.dll"
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\dxil.dll" -Destination ".\release\dxil.dll"
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\UnleashedRecomp.exe" -Destination ".\release\UnleashedRecomp.exe"
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
- name: Upload artifact to Discord - name: Upload artifact to Discord
env: env:
@ -55,6 +81,7 @@ jobs:
with: with:
webhook-url: ${{ env.DISCORD_WEBHOOK }} webhook-url: ${{ env.DISCORD_WEBHOOK }}
content: | content: |
Summary: ${{ env.commit_message }}
Commit: ${{ github.sha }} Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }} Branch: ${{ github.ref_name }}
filename: .\UnleashedRecomp-Windows.zip filename: .\UnleashedRecomp-Windows.zip