mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-30 09:35:40 +00:00
Updated workflow
This commit is contained in:
parent
8dd18bab6a
commit
0bcc6939f2
150
.github/workflows/cooker.yml
vendored
150
.github/workflows/cooker.yml
vendored
|
@ -37,15 +37,23 @@ jobs:
|
||||||
# uses: actions/cache@v2
|
# uses: actions/cache@v2
|
||||||
# with:
|
# with:
|
||||||
# path: /home/runner/work/RetroDECK
|
# path: /home/runner/work/RetroDECK
|
||||||
# key: ${{ runner.os }}-cache
|
# key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
Job2_-_Downloading_Sources:
|
Job2_-_Downloading_Sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#needs: [Job1_-_Prepearing_enviornment]
|
#needs: [Job1_-_Prepearing_enviornment]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: cache-cooker
|
||||||
|
id: cache-cooker
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: /home/runner/work/RetroDECK
|
||||||
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
- name: Downloading sources
|
- name: Downloading sources
|
||||||
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
@ -56,44 +64,35 @@ jobs:
|
||||||
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
|
||||||
sudo flatpak-builder --download-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
sudo flatpak-builder --download-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: cache-cooker
|
# - name: Continuing with previous worklow cache
|
||||||
id: cache-cooker
|
# if: steps.cache-cooker.outputs.cache-hit == 'true'
|
||||||
uses: actions/cache@v2
|
# run: |
|
||||||
with:
|
# cd /home/runner/work/RetroDECK/RetroDECK
|
||||||
path: /home/runner/work/RetroDECK
|
# git pull
|
||||||
key: ${{ runner.os }}-cache
|
# 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
|
||||||
|
# sudo flatpak-builder --download-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
Job3_-_Building_part_1:
|
Job3_-_Building_part_1:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Job2_-_Downloading_Sources]
|
needs: [Job2_-_Downloading_Sources]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
#- uses: actions/checkout@v3
|
||||||
- name: Bulding part 1 - Until RetroArch Cores
|
|
||||||
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
|
|
||||||
sudo flatpak-builder --build-only --stop-at=retroarch-cores --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
|
||||||
|
|
||||||
- name: cache-cooker
|
- name: cache-cooker
|
||||||
id: cache-cooker
|
id: cache-cooker
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /home/runner/work/RetroDECK
|
path: /home/runner/work/RetroDECK
|
||||||
key: ${{ runner.os }}-cache
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
Job4_-_Building_part_2:
|
- name: Initializing enviornment
|
||||||
runs-on: ubuntu-latest
|
#if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
needs: [Job3_-_Building_part_1]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Bulding part 1 - Until the end
|
|
||||||
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
@ -102,54 +101,115 @@ jobs:
|
||||||
sudo apt install flatpak flatpak-builder p7zip-full
|
sudo apt install flatpak flatpak-builder p7zip-full
|
||||||
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
|
||||||
sudo flatpak-builder --build-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
|
||||||
|
- name: Bulding part 1 - Until RetroArch Cores
|
||||||
|
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd /home/runner/work/RetroDECK/RetroDECK
|
||||||
|
sudo flatpak-builder --build-only --stop-at=retroarch-cores --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
Job4_-_Building_part_2:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [Job3_-_Building_part_1]
|
||||||
|
steps:
|
||||||
|
#- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: cache-cooker
|
- name: cache-cooker
|
||||||
id: cache-cooker
|
id: cache-cooker
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /
|
path: /home/runner/work/RetroDECK
|
||||||
key: ${{ runner.os }}-cache
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
|
- 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: Bulding part 1 - Until the end
|
||||||
|
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd /home/runner/work/RetroDECK/RetroDECK
|
||||||
|
sudo flatpak-builder --build-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
Job5_-_Finishing_build:
|
Job5_-_Finishing_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Job4_-_Building_part_2]
|
needs: [Job4_-_Building_part_2]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
#- uses: actions/checkout@v3
|
||||||
- name: Finishing build
|
|
||||||
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
sudo flatpak-builder --finish-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
|
||||||
|
|
||||||
- name: cache-cooker
|
- name: cache-cooker
|
||||||
id: cache-cooker
|
id: cache-cooker
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /
|
path: /home/runner/work/RetroDECK
|
||||||
key: ${{ runner.os }}-cache
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
|
- 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: Finishing build
|
||||||
|
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd /home/runner/work/RetroDECK/RetroDECK
|
||||||
|
sudo flatpak-builder --finish-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
Job6_-_Build_bundle:
|
Job6_-_Build_bundle:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Job5_-_Finishing_build]
|
needs: [Job5_-_Finishing_build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
#- uses: actions/checkout@v3
|
||||||
- name: Build bundle
|
|
||||||
if: steps.cache-cooker.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
|
|
||||||
|
|
||||||
- name: cache-cooker
|
- name: cache-cooker
|
||||||
id: cache-cooker
|
id: cache-cooker
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /
|
path: /home/runner/work/RetroDECK
|
||||||
key: ${{ runner.os }}-cache
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
|
- 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 /home/runner/work/RetroDECK/RetroDECK
|
||||||
|
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
|
||||||
|
|
||||||
Job7_-_Publishing_flatpak:
|
Job7_-_Publishing_flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Job6_-_Build_bundle]
|
needs: [Job6_-_Build_bundle]
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: cache-cooker
|
||||||
|
id: cache-cooker
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: /home/runner/work/RetroDECK
|
||||||
|
key: ${{ runner.os }}-cooker-cache
|
||||||
|
|
||||||
- name: Get date for artifacts
|
- name: Get date for artifacts
|
||||||
id: date
|
id: date
|
||||||
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')"
|
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')"
|
||||||
|
|
Loading…
Reference in a new issue