PANCAKES: trying to store the token for the clone

This commit is contained in:
XargonWan 2024-11-30 23:47:20 +09:00
parent bd2ffd5f1e
commit dac1f0c2dd
2 changed files with 28 additions and 14 deletions

View file

@ -185,14 +185,28 @@ jobs:
echo "[DEBUG] CHECKPOINT 8"
- name: Generate a token for Rekku
id: generate-rekku-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.REKKU_APP_ID }}
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
repositories: "RetroDECK,Cooker"
owner: "RetroDECK"
- name: "Build flatpak: download only"
id: flatpak-download
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
run: |
git config --global credential.helper store
echo "https://${{ steps.generate-rekku-token.outputs.token }}@github.com" > ~/.git-credentials
"/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
# 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 credential.helper store
echo "https://${{ steps.generate-rekku-token.outputs.token }}@github.com" > ~/.git-credentials
echo "Download failed, maybe some hash changed since the build start."
echo "Recalculating hashes and retrying download..."
rm -f "{GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml"

View file

@ -560,19 +560,19 @@ modules:
# Pancakes
# - name: Pancakes
# buildsystem: simple
# build-commands:
# - mkdir -p "${FLATPAK_DEST}"
# - mv *.so* "${FLATPAK_DEST}/retrodeck/tmplib/"
# - mv R*x* "${FLATPAK_DEST}/bin/"
# - chmod +x "${FLATPAK_DEST}/bin/R*x"*
# - mkdir -p "${FLATPAK_DEST}/retrodeck/licenses"
# - mv LICENSE.txt "${FLATPAK_DEST}/retrodeck/licenses"
# sources:
# - type: file
# url: https://github.com/RetroDECK/Pancakes/releases/download/1.1.0.1403/pancakes-Release-linux_x64.tar.gz
# sha256: cc7d25b6a2f2ad16533e3d72ba9477a4d77b8cfbb450f0db3d0c05ffde5e1281
- name: Pancakes
buildsystem: simple
build-commands:
- mkdir -p "${FLATPAK_DEST}"
- mv *.so* "${FLATPAK_DEST}/retrodeck/tmplib/"
- mv R*x* "${FLATPAK_DEST}/bin/"
- chmod +x "${FLATPAK_DEST}/bin/R*x"*
- mkdir -p "${FLATPAK_DEST}/retrodeck/licenses"
- mv LICENSE.txt "${FLATPAK_DEST}/retrodeck/licenses"
sources:
- type: file
url: https://github.com/RetroDECK/Pancakes/releases/download/1.1.0.1403/pancakes-Release-linux_x64.tar.gz
sha256: cc7d25b6a2f2ad16533e3d72ba9477a4d77b8cfbb450f0db3d0c05ffde5e1281
# XEMU
# https://xemu.app/docs/download/#download-for-linux