Making it more generic

This commit is contained in:
XargonWan 2024-08-24 00:05:56 +09:00
parent 49b1bb673c
commit 86753c373b

View file

@ -1,4 +1,4 @@
name: "Build supermodel Artifacts for RetroDECK" name: "Build Artifacts for RetroDECK"
on: on:
push: push:
@ -9,7 +9,7 @@ on:
jobs: jobs:
Building_Supermodel: Building:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -27,11 +27,11 @@ jobs:
- name: "Install dependencies" - name: "Install dependencies"
run: "automation_tools/install_dependencies.sh" run: "automation_tools/install_dependencies.sh"
- name: "Creating supermodel manifest" - name: "Creating manifest"
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/update_supermodel_manifest.sh" run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/update_manifest.sh"
# - name: "[DEBUG] Outputting manifest" - name: "[DEBUG] Outputting manifest"
# run: cat net.retrodeck.supermodel.yml run: cat net.retrodeck.supermodel.yml
- name: "Build flatpak" - name: "Build flatpak"
id: "flatpak-download" id: "flatpak-download"
@ -40,8 +40,8 @@ jobs:
flatpak-builder --user --force-clean \ flatpak-builder --user --force-clean \
--install-deps-from=flathub \ --install-deps-from=flathub \
--install-deps-from=flathub-beta \ --install-deps-from=flathub-beta \
--repo=${GITHUB_WORKSPACE}/supermodel-repo \ --repo=${GITHUB_WORKSPACE}/repo \
"${GITHUB_WORKSPACE}"/supermodel-build-dir \ "${GITHUB_WORKSPACE}"/build-dir \
net.retrodeck.supermodel.yaml net.retrodeck.supermodel.yaml
- name: "Exporting dir tree" - name: "Exporting dir tree"
@ -50,7 +50,7 @@ jobs:
- name: Create Artifact for RetroDECK - name: Create Artifact for RetroDECK
run: | run: |
tar -czf ${GITHUB_WORKSPACE}/Supermodel-Artifact.tar.gz -C ${GITHUB_WORKSPACE}/supermodel-build-dir . tar -czf ${GITHUB_WORKSPACE}/Supermodel-Artifact.tar.gz -C ${GITHUB_WORKSPACE}/build-dir .
hash=($(sha256sum ${GITHUB_WORKSPACE}/Supermodel-Artifact.tar.gz)) hash=($(sha256sum ${GITHUB_WORKSPACE}/Supermodel-Artifact.tar.gz))
echo $hash > ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha echo $hash > ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha
mv -f RetroDECK-Artifact-cooker.* ${{ secrets.ARTIFACT_REPO }} mv -f RetroDECK-Artifact-cooker.* ${{ secrets.ARTIFACT_REPO }}