mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
Attempt 16
Hopefully final
This commit is contained in:
parent
16df6ca8d3
commit
2f45ad95a4
1 changed files with 23 additions and 7 deletions
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
|
@ -5,6 +5,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- linux-actions
|
- linux-actions
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FLATPAK_ID: io.github.hedge_dev.unleashedrecomp
|
FLATPAK_ID: io.github.hedge_dev.unleashedrecomp
|
||||||
FREEDESKTOP_VERSION: 23.08
|
FREEDESKTOP_VERSION: 23.08
|
||||||
|
|
@ -40,6 +41,14 @@ 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
|
||||||
|
|
@ -48,20 +57,27 @@ jobs:
|
||||||
|
|
||||||
- name: Build Flatpak
|
- name: Build Flatpak
|
||||||
run: |
|
run: |
|
||||||
|
echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
|
||||||
export CCACHE_DIR=/tmp/ccache
|
export CCACHE_DIR=/tmp/ccache
|
||||||
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --install --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
|
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --install --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
|
||||||
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
||||||
- name: Upload artifact
|
# Uplodads the built flatpak bundle to GitHub
|
||||||
uses: actions/upload-artifact@v4
|
# - name: Upload artifact
|
||||||
with:
|
# uses: actions/upload-artifact@v4
|
||||||
name: UnleashedRecomp-flatpak
|
# with:
|
||||||
path: ./${{ env.FLATPAK_ID }}.flatpak
|
# name: UnleashedRecomp-flatpak
|
||||||
|
# path: ./${{ env.FLATPAK_ID }}.flatpak
|
||||||
|
|
||||||
- name: Upload artifact to Discord
|
- name: Upload artifact to Discord
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
if: ${{ env.DISCORD_WEBHOOK != '' }}
|
if: ${{ env.DISCORD_WEBHOOK != '' }}
|
||||||
uses: sinshutu/upload-to-discord@master
|
uses: tsickert/discord-webhook@v6.0.0
|
||||||
with:
|
with:
|
||||||
args: ./${{ env.FLATPAK_ID }}.flatpak
|
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
||||||
|
content: |
|
||||||
|
Branch: ${{ github.ref_name }}
|
||||||
|
Commit Message: ${{ env.commit_message }}
|
||||||
|
Commit Hash: ${{ github.sha }}
|
||||||
|
filename: ./${{ env.FLATPAK_ID }}.flatpak
|
||||||
Loading…
Add table
Reference in a new issue