mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-27 08:05:42 +00:00
New workflow: different approach
This commit is contained in:
parent
3002d539b3
commit
acf13bb4f4
58
.github/workflows/cooker.yml
vendored
58
.github/workflows/cooker.yml
vendored
|
@ -17,27 +17,27 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
Job1_-_Prepearing_enviornment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
- name: Prepearing enviornment
|
||||
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
|
||||
# Job1_-_Prepearing_enviornment:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
# - uses: actions/checkout@v3
|
||||
# - name: Prepearing enviornment
|
||||
# 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: cache-cooker
|
||||
id: cache-cooker
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /
|
||||
key: ${{ runner.os }}-cache
|
||||
# - name: cache-cooker
|
||||
# id: cache-cooker
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ./*flatpak*
|
||||
# key: ${{ runner.os }}-cache
|
||||
|
||||
Job2_-_Downloading_Sources:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -46,13 +46,20 @@ jobs:
|
|||
- name: Downloading sources
|
||||
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 --download-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||
|
||||
- name: cache-cooker
|
||||
id: cache-cooker
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /
|
||||
path: ./*flatpak*
|
||||
key: ${{ runner.os }}-cache
|
||||
|
||||
Job3_-_Building_part_1:
|
||||
|
@ -62,13 +69,20 @@ jobs:
|
|||
- 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
|
||||
id: cache-cooker
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /
|
||||
path: ./*flatpak*
|
||||
key: ${{ runner.os }}-cache
|
||||
|
||||
Job4_-_Building_part_2:
|
||||
|
|
Loading…
Reference in a new issue