Skip to content

CI

CI #123

Workflow file for this run

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-INSTALLER_${{ env.sha8 }}
path: OPENTUNAtoPS2BBL-INSTALLER.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: "TunaPS2BBL2OSDMENU"
prerelease: false
title: "OpenTuna w/ PS2BBL & OSDMenu"
files: OPENTUNAtoPS2BBL-BAREBONES-INSTALLER.ELF