From 826f860d40bed1955d07470cd76215c4aab6c391 Mon Sep 17 00:00:00 2001 From: Xargon Wan Date: Sun, 8 May 2022 10:58:46 +0900 Subject: [PATCH] ARTIFACTS: added local repo to cache --- .github/workflows/cooker.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cooker.yml b/.github/workflows/cooker.yml index 7c7f4181..120ecd1f 100644 --- a/.github/workflows/cooker.yml +++ b/.github/workflows/cooker.yml @@ -68,7 +68,7 @@ jobs: # 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 - # sudo flatpak-builder --download-only --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + # sudo flatpak-builder --download-only --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml # # - name: Generating build specific cache # # id: intenral-cache @@ -101,7 +101,7 @@ jobs: # 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 - # sudo flatpak-builder --download-only --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + # sudo flatpak-builder --download-only --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml Job3_-_Building_part_1: runs-on: ubuntu-latest @@ -133,16 +133,16 @@ jobs: 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 - sudo flatpak-builder --download-only --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + sudo flatpak-builder --download-only --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - name: Bulding part 1 - Until melonds #if: steps.cache-cooker.outputs.cache-hit != 'true' - run: sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + run: sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - name: Compressing cache run: | touch retrodeck-cooker.tar.gz - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker local - name: Upload build specific cache uses: actions/upload-artifact@v3 @@ -183,12 +183,12 @@ jobs: #if: steps.cache-cooker.outputs.cache-hit != 'true' run: | #cd $GITHUB_WORKSPACE - sudo flatpak-builder --build-only --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + sudo flatpak-builder --build-only --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - name: Compressing cache run: | touch retrodeck-cooker.tar.gz - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker local - name: Upload build specific cache uses: actions/upload-artifact@v3 @@ -235,12 +235,12 @@ jobs: #if: steps.cache-cooker.outputs.cache-hit != 'true' run: | #cd $GITHUB_WORKSPACE - sudo flatpak-builder --finish-only --user --force-clean --repo=local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + sudo flatpak-builder --finish-only --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - name: Compressing cache run: | touch retrodeck-cooker.tar.gz - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker local - name: Upload build specific cache uses: actions/upload-artifact@v3 @@ -292,7 +292,7 @@ jobs: - name: Compressing cache run: | touch retrodeck-cooker.tar.gz - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker local - name: Upload build specific cache uses: actions/upload-artifact@v3 @@ -353,7 +353,7 @@ jobs: - name: Compressing cache run: | touch retrodeck-cooker.tar.gz - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz .flatpak-builder retrodeck-flatpak-cooker local - name: Upload global cache uses: actions/upload-artifact@v3