Oh-oh-oh-oh-oh-oh-oh #186
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build ES-DE" | |
| on: | |
| push: | |
| branches: | |
| - retrodeck-main | |
| - main | |
| - feat/* | |
| workflow_dispatch: | |
| jobs: | |
| Set_Release_Metadata: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| branch_name: ${{ steps.set-vars.outputs.branch_name }} | |
| date: ${{ steps.set-vars.outputs.date }} | |
| steps: | |
| - name: Set Branch and Date | |
| id: set-vars | |
| run: | | |
| BRANCH_NAME=$(echo "${GITHUB_REF#refs/heads/}") | |
| DATE=$(date +'%d%m%y.%S') | |
| echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT | |
| echo "date=$DATE" >> $GITHUB_OUTPUT | |
| Create_AppImage_RetroDECK: | |
| runs-on: ubuntu-latest | |
| needs: Set_Release_Metadata | |
| steps: | |
| - 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: "ES-DE" | |
| owner: "RetroDECK" | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| # with: | |
| # submodules: 'recursive' | |
| # token: ${{ steps.generate-rekku-token.outputs.token }} | |
| # fetch-depth: 1 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential clang-format git cmake gettext libharfbuzz-dev libicu-dev libsdl2-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libfreeimage-dev libfreetype6-dev libgit2-dev libcurl4-openssl-dev libpugixml-dev libasound2-dev libgl1-mesa-dev libpoppler-cpp-dev libpipewire-0.3-dev libbluetooth-dev fuse | |
| - name: Build AppImage | |
| run: | | |
| chmod +x tools/create_AppImage_RetroDECK.sh | |
| ./tools/create_AppImage_RetroDECK.sh | |
| - name: Upload AppImage to GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: "${{ needs.Set_Release_Metadata.outputs.branch_name }}-${{ needs.Set_Release_Metadata.outputs.date }}" | |
| name: "${{ needs.Set_Release_Metadata.outputs.branch_name }} Build" | |
| body: | | |
| # Release Notes | |
| These are the artifact of RetroDECK ES-DE, commit: ${{ github.event.repository.full_name }}@${{github.sha}}. | |
| On branch [${{ needs.Set_Release_Metadata.outputs.branch_name }}](https://github.com/${{ github.repository }}/tree/${{ needs.Set_Release_Metadata.outputs.branch_name }}). | |
| artifacts: | | |
| ES-DE_x64_RetroDECK.AppImage | |
| allowUpdates: true | |
| makeLatest: ${{ contains(needs.Set_Release_Metadata.outputs.branch_name, 'feat/') && 'false' || 'true' }} | |
| token: ${{ steps.generate-rekku-token.outputs.token }} | |