New GitActions workflow for cooker

This commit is contained in:
XargonWan 2022-04-30 10:35:55 +09:00
parent 4f25d2e46c
commit 3eff544b6e

View file

@ -15,18 +15,13 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Prepearing enviornment
run: |
git submodule init
@ -36,11 +31,45 @@ 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
- name: Building flatpak
run: |
sudo flatpak-builder --user --install --force-clean --repo=local retrodeck-flatpak net.retrodeck.retrodeck.yml
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
Job 2 - Downloading_Sources:
runs-on: ubuntu-latest
steps:
- 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
id: date