forked from hmxmilohax/rock-band-3-deluxe
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1.34 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on: [push, pull_request]
jobs:
build_wii_raw:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
- name: Build ARK
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x dependencies/arkhelper
chmod +x dependencies/dtab
chmod +x dependencies/superfreq
find _ark/songs/ -name "*.dta" -type f -delete
find _ark/songs/updates/ -name "*.mid" -type f -delete
find _ark/songs/updates/ -name "*.png" -type f -delete
find _ark/songs/updates/ -name "*.milo_wii" -type f -delete
find _ark/songs/updates/ -empty -type d -delete
find . -name "*.*_ps3" -type f -delete
find . -name "*.*_xbox" -type f -delete
echo $GITHUB_SHA_SHORT
sed -i -e "s/devbuild/"$GITHUB_SHA_SHORT"/g" _ark/ui/locale/*/locale_updates_keep.dta
dependencies/arkhelper dir2ark ./_ark ./_build/wii/gen -n "patch_wii" -e -v 6
dependencies/arkhelper ark2dir ./_build/wii/gen/patch_wii.hdr ./_build/wii/rawfiles -a
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: RB3DX-Base-Wii-Rawfiles
path: _build/wii/rawfiles