mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 00:55:42 +00:00
Sync to main repo
This commit is contained in:
parent
6c95113cfe
commit
5e762cc056
34
.github/workflows/cooker-selfhosted.yml
vendored
34
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -32,7 +32,10 @@ jobs:
|
||||||
run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Clone RetroDECK repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
- name: Generate cooker build ID
|
- name: Generate cooker build ID
|
||||||
run: |
|
run: |
|
||||||
|
@ -59,6 +62,35 @@ jobs:
|
||||||
sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml
|
sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml
|
||||||
echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)"
|
echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
|
||||||
|
- name: "Build flatpak: download only"
|
||||||
|
id: "flatpak-download"
|
||||||
|
run: |
|
||||||
|
git config --global protocol.file.allow always
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/local
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker
|
||||||
|
flatpak-builder --user --force-clean \
|
||||||
|
--install-deps-from=flathub \
|
||||||
|
--install-deps-from=flathub-beta \
|
||||||
|
--repo=${GITHUB_WORKSPACE}/local \
|
||||||
|
--download-only \
|
||||||
|
${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \
|
||||||
|
net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
# Sometimes flatpak download fails, in this case it tries a second time
|
||||||
|
- name: "Build flatpak: download only (retry)"
|
||||||
|
if: steps.flatpak-download.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
git config --global protocol.file.allow always
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/local
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker
|
||||||
|
flatpak-builder --user --force-clean \
|
||||||
|
--install-deps-from=flathub \
|
||||||
|
--install-deps-from=flathub-beta \
|
||||||
|
--repo=${GITHUB_WORKSPACE}/local \
|
||||||
|
--download-only \
|
||||||
|
${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \
|
||||||
|
net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: Build flatpak
|
- name: Build flatpak
|
||||||
run: |
|
run: |
|
||||||
git config --global protocol.file.allow always
|
git config --global protocol.file.allow always
|
||||||
|
|
29
.github/workflows/main-selfhosted.yml
vendored
29
.github/workflows/main-selfhosted.yml
vendored
|
@ -65,6 +65,35 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: "Build flatpak: download only"
|
||||||
|
id: "flatpak-download"
|
||||||
|
run: |
|
||||||
|
git config --global protocol.file.allow always
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/local
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker
|
||||||
|
flatpak-builder --user --force-clean \
|
||||||
|
--install-deps-from=flathub \
|
||||||
|
--install-deps-from=flathub-beta \
|
||||||
|
--repo=${GITHUB_WORKSPACE}/local \
|
||||||
|
--download-only \
|
||||||
|
${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \
|
||||||
|
net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
|
# Sometimes flatpak download fails, in this case it tries a second time
|
||||||
|
- name: "Build flatpak: download only (retry)"
|
||||||
|
if: steps.flatpak-download.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
git config --global protocol.file.allow always
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/local
|
||||||
|
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker
|
||||||
|
flatpak-builder --user --force-clean \
|
||||||
|
--install-deps-from=flathub \
|
||||||
|
--install-deps-from=flathub-beta \
|
||||||
|
--repo=${GITHUB_WORKSPACE}/local \
|
||||||
|
--download-only \
|
||||||
|
${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \
|
||||||
|
net.retrodeck.retrodeck.yml
|
||||||
|
|
||||||
- name: Build flatpak
|
- name: Build flatpak
|
||||||
run: |
|
run: |
|
||||||
git config --global protocol.file.allow always
|
git config --global protocol.file.allow always
|
||||||
|
|
Loading…
Reference in a new issue