mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-27 08:05:42 +00:00
ARTIFACTS: Building first part longer, reduced the number of Jobs
This commit is contained in:
parent
7055189f85
commit
c9437d99ea
68
.github/workflows/cooker.yml
vendored
68
.github/workflows/cooker.yml
vendored
|
@ -134,9 +134,10 @@ jobs:
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
||||||
|
|
||||||
- name: Bulding part 1 - Until melonds
|
- name: Bulding part 1 - Until rpcs3
|
||||||
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
run: sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
run: |
|
||||||
|
sudo flatpak-builder --build-only --stop-at=rpcs3 --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: Compressing cache
|
- name: Compressing cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -199,7 +200,7 @@ jobs:
|
||||||
# name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
|
# name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
|
||||||
# path: retrodeck-cooker.tar.gz
|
# path: retrodeck-cooker.tar.gz
|
||||||
|
|
||||||
Job5_-_Finishing_build:
|
Job6_-_Build_bundle:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Job1_-_Prepearing_enviornment, Job3_-_Building_part_1]
|
needs: [Job1_-_Prepearing_enviornment, Job3_-_Building_part_1]
|
||||||
steps:
|
steps:
|
||||||
|
@ -226,6 +227,7 @@ jobs:
|
||||||
- name: Initializing enviornment
|
- name: Initializing enviornment
|
||||||
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
git pull
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
sudo add-apt-repository ppa:alexlarsson/flatpak
|
sudo add-apt-repository ppa:alexlarsson/flatpak
|
||||||
|
@ -234,71 +236,17 @@ jobs:
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
||||||
|
|
||||||
- name: Finishing build
|
- name: Creating Bundle
|
||||||
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
run: |
|
||||||
sudo flatpak-builder --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
sudo flatpak-builder --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: Compressing cache
|
|
||||||
run: |
|
|
||||||
touch retrodeck-cooker.tar.gz
|
|
||||||
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
|
||||||
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
|
||||||
tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker
|
|
||||||
|
|
||||||
- name: Upload build specific cache
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
|
|
||||||
path: retrodeck-cooker.tar.gz
|
|
||||||
|
|
||||||
Job6_-_Build_bundle:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [Job1_-_Prepearing_enviornment, Job3_-_Building_part_1, Job5_-_Finishing_build]
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
# - name: cache-cooker
|
|
||||||
# id: internal-cache
|
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# retrodeck-cooker.tar.gz
|
|
||||||
# key: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
|
|
||||||
|
|
||||||
- name: Download build specific cache
|
|
||||||
uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
|
|
||||||
|
|
||||||
- name: Extracting cache
|
|
||||||
run: |
|
|
||||||
tar --skip-old-files -xzvf retrodeck-cooker.tar.gz
|
|
||||||
rm -f retrodeck-cooker.tar.gz
|
|
||||||
|
|
||||||
- name: Initializing enviornment
|
|
||||||
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
git submodule init
|
|
||||||
git submodule update
|
|
||||||
sudo add-apt-repository ppa:alexlarsson/flatpak
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt install flatpak flatpak-builder p7zip-full
|
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
|
||||||
|
|
||||||
- name: Build bundle
|
|
||||||
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
#cd $GITHUB_WORKSPACE
|
|
||||||
sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck
|
sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck
|
||||||
|
|
||||||
- name: Compressing cache
|
- name: Compressing cache + RetroDECK.flatpak
|
||||||
run: |
|
run: |
|
||||||
touch retrodeck-cooker.tar.gz
|
touch retrodeck-cooker.tar.gz
|
||||||
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
||||||
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
||||||
tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker
|
tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker RetroDECK.flatpak
|
||||||
|
|
||||||
- name: Upload build specific cache
|
- name: Upload build specific cache
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in a new issue