mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
WORKFLOW: fixed yaml syntax
This commit is contained in:
parent
d79428f8ee
commit
36faa0e72d
94
.github/workflows/cooker.yml
vendored
94
.github/workflows/cooker.yml
vendored
|
@ -17,62 +17,62 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- 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%S')"
|
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
|
|
||||||
- name: Generating build ID
|
- name: Generating build ID
|
||||||
run: echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
|
run: echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
buildID: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
|
buildID: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download global cache
|
- name: Download global cache
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: global-cache
|
name: global-cache
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Extracting cache
|
- name: Extracting cache
|
||||||
run: |
|
run: |
|
||||||
tar --skip-old-files -xzvf retrodeck-cooker.tar.gz
|
tar --skip-old-files -xzvf retrodeck-cooker.tar.gz
|
||||||
rm -f retrodeck-cooker.tar.gz
|
rm -f retrodeck-cooker.tar.gz
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Initializing enviornment
|
- name: Initializing enviornment
|
||||||
run: |
|
run: |
|
||||||
git pull
|
git pull
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
sudo add-apt-repository ppa:alexlarsson/flatpak
|
sudo add-apt-repository ppa:alexlarsson/flatpak
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
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
|
||||||
|
|
||||||
- name: Bulding part 1 - Until rpcs3
|
- name: Bulding part 1 - Until rpcs3
|
||||||
run: |
|
run: |
|
||||||
sudo flatpak-builder --build-only --stop-at=rpcs3 --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
sudo flatpak-builder --build-only --stop-at=rpcs3 --user --force-clean --repo=$GITHUB_WORKSPACE/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: Compressing cache
|
- name: Compressing cache
|
||||||
run: |
|
run: |
|
||||||
touch retrodeck-cooker.tar.gz
|
touch retrodeck-cooker.tar.gz
|
||||||
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
||||||
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
||||||
tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker
|
tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker
|
||||||
|
|
||||||
- name: Upload build specific cache
|
- name: Upload build specific cache
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.Job1_-_Building_P1.outputs.buildID }}
|
name: ${{ needs.Job1_-_Building_P1.outputs.buildID }}
|
||||||
path: retrodeck-cooker.tar.gz
|
path: retrodeck-cooker.tar.gz
|
||||||
|
|
||||||
Job2_-_Build_P2_and_publish:
|
Job2_-_Build_P2_and_publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue