mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-18 06:45:38 +00:00
New GitActions workflow for cooker
This commit is contained in:
parent
4f25d2e46c
commit
3eff544b6e
51
.github/workflows/cooker.yml
vendored
51
.github/workflows/cooker.yml
vendored
|
@ -15,18 +15,13 @@ on:
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build_cooker_snap:
|
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
Job 1 - Prepearing_enviornment:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Prepearing enviornment
|
- name: Prepearing enviornment
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
|
@ -37,10 +32,44 @@ 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: Building flatpak
|
Job 2 - Downloading_Sources:
|
||||||
run: |
|
runs-on: ubuntu-latest
|
||||||
sudo flatpak-builder --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
steps:
|
||||||
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
|
- name: Downloading sources
|
||||||
|
run: |
|
||||||
|
sudo flatpak-builder --download-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
Job 3 - Building_part_1:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Bulding part 1 - Until RetroArch Cores
|
||||||
|
run: |
|
||||||
|
sudo flatpak-builder --build-only --stop-at=retroarch-cores --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
Job 4 - Building_part_2:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Bulding part 1 - Until the end
|
||||||
|
run: |
|
||||||
|
sudo flatpak-builder --build-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
Job 5 - Finishing_build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Finishing build
|
||||||
|
run: |
|
||||||
|
sudo flatpak-builder --finish-only --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
Job 6 - Build_bundle:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Build bundle
|
||||||
|
run: |
|
||||||
|
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
|
||||||
|
|
||||||
|
Job 7 - Publishing_flatpak:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
- name: Get date for artifacts
|
- name: Get date for artifacts
|
||||||
id: date
|
id: date
|
||||||
|
|
Loading…
Reference in a new issue