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" 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" - name: "Build flatpak: download only"
id: flatpak-download 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 # Sometimes flatpak download fails, in this case it tries a second time
- name: "Build flatpak: download only (retry)" - name: "Build flatpak: download only (retry)"
if: steps.flatpak-download.outcome == 'failure' if: steps.flatpak-download.outcome == 'failure'
run: | 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 "Download failed, maybe some hash changed since the build start."
echo "Recalculating hashes and retrying download..." echo "Recalculating hashes and retrying download..."
rm -f "{GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml" rm -f "{GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml"

View file

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