mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Tweaked vcpkg caching and added OS to webhook message
This commit is contained in:
parent
edca3a08e7
commit
f998159aeb
2 changed files with 11 additions and 8 deletions
9
.github/workflows/build-flatpak.yml
vendored
9
.github/workflows/build-flatpak.yml
vendored
|
|
@ -38,14 +38,6 @@ jobs:
|
||||||
path: /tmp/ccache
|
path: /tmp/ccache
|
||||||
key: ccache-${{ runner.os }}
|
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: Prepare Flatpak
|
- name: Prepare Flatpak
|
||||||
run: |
|
run: |
|
||||||
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
@ -74,6 +66,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
||||||
content: |
|
content: |
|
||||||
|
OS: Linux
|
||||||
Summary: ${{ env.commit_message }}
|
Summary: ${{ env.commit_message }}
|
||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
Branch: ${{ github.ref_name }}
|
Branch: ${{ github.ref_name }}
|
||||||
|
|
|
||||||
10
.github/workflows/build-windows.yml
vendored
10
.github/workflows/build-windows.yml
vendored
|
|
@ -37,6 +37,8 @@ jobs:
|
||||||
./thirdparty/vcpkg/downloads
|
./thirdparty/vcpkg/downloads
|
||||||
./thirdparty/vcpkg/packages
|
./thirdparty/vcpkg/packages
|
||||||
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
|
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
vcpkg-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -69,6 +71,13 @@ jobs:
|
||||||
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\UnleashedRecomp.exe" -Destination ".\release\UnleashedRecomp.exe"
|
Move-Item -Path ".\out\build\${{ env.CMAKE_PRESET }}\UnleashedRecomp\UnleashedRecomp.exe" -Destination ".\release\UnleashedRecomp.exe"
|
||||||
|
|
||||||
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
|
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
|
||||||
|
|
||||||
|
# Uploads the packed zip file to GitHub
|
||||||
|
# - name: Upload artifact
|
||||||
|
# uses: actions/upload-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: UnleashedRecomp-Windows
|
||||||
|
# path: .\UnleashedRecomp-Windows.zip
|
||||||
|
|
||||||
- name: Upload artifact to Discord
|
- name: Upload artifact to Discord
|
||||||
env:
|
env:
|
||||||
|
|
@ -78,6 +87,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
||||||
content: |
|
content: |
|
||||||
|
OS: Windows
|
||||||
Summary: ${{ env.commit_message }}
|
Summary: ${{ env.commit_message }}
|
||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
Branch: ${{ github.ref_name }}
|
Branch: ${{ github.ref_name }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue