Skip to content

Commit

Permalink
nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
lunalawl committed Oct 27, 2024
1 parent 613dc23 commit da1f1a6
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da1f1a6

Please sign in to comment.