Update compilation.yml #130
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [run_build] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: ps2dev/ps2dev:v1.2.0 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apk add build-base git zip | |
| - uses: actions/checkout@v3 | |
| - run: | | |
| git fetch --prune --unshallow | |
| - name: Compile | |
| run: | | |
| make | |
| - name: Get short SHA | |
| id: slug | |
| run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV | |
| # (Optional) Keep artifact upload if needed separately | |
| - name: Upload artifacts | |
| if: ${{ success() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: OPENTUNAtoPS2BBL-BAREBONES_${{ env.sha8 }} | |
| path: OPENTUNAtoPS2BBL-BAREBONES.ELF | |
| # Ensure release step can find the ELF file | |
| - name: Debug - Check ELF file exists | |
| run: ls -lah OPENTUNAtoPS2BBL-INSTALLER.ELF | |
| - name: Create release | |
| if: github.ref == 'refs/heads/UMCS' | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "latest" | |
| prerelease: false | |
| title: "OpenTuna w/ PS2BBL & OSDMenu" | |
| files: OPENTUNAtoPS2BBL-BAREBONES.ELF |