diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ac3839f..cb5ea2bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,3 +138,64 @@ jobs: with: name: RB2DXCE-PS2 path: _build/ps2 + + build_ps2: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Download Mackiloha + run: | + pip install requests + python dependencies/dev_scripts/download_mackiloha.py + - name: Set env + run: | + echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV + echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + chmod +x dependencies/linux/arkhelper + chmod +x dependencies/linux/dtab + chmod +x dependencies/linux/superfreq + pip install gitpython + pip install mido + - name: Remove PS3/Xbox files + run: | + find . -name "*.*_ps3" -type f -delete + find . -name "*.*_xbox" -type f -delete + - name: Download PS2 files + run: | + python dependencies/dev_scripts/download_ps2_action.py + - name: Add PS2 files to _ark + run: | + rsync -a ./_ps2_files/* ./_ark + rsync -a ./_ark_ps2/* ./_ark + rm -rf ./_ark/.git + rm -rf ./_ark/README.md + rm -rf ./_ark/songs/afterlife + rm -rf ./_ark/songs/getclean + rm -rf ./_ark/songs/kidsinamerica + rm -rf ./_ark/songs/mountainsong + rm -rf ./_ark/songs/shacklersrevenge + - name: Download/Copy RB2 Songs + run: | + chmod +x dependencies/linux/gdrive + dependencies/linux/gdrive account import dependencies/linux/gdrive_key.tar + dependencies/linux/gdrive files download 1gTMkLScBkENtSk2EHDweMmlfMi9XMUGK --recursive --destination ./ + mv ./rb2dxsongs/* ./_ark/songs -f + - name: Build ARK + run: | + dependencies/linux/arkhelper dir2ark ./_ark ./_build/ps2/gen -n "MAIN" -e -v 4 -s 4073741823 + - name: Remove Excess files + run: | + find . -name "*.txt" -type f -delete + find . -name "*.zbm" -type f -delete + rm -rf ./_ark + + - name: Upload result + uses: actions/upload-artifact@v4 + with: + name: RB2DX-PS2 + path: _build/ps2