Made some bash scripts for common tools

This commit is contained in:
2023-03-20 13:40:25 -07:00
parent ca696332c9
commit 4ba9f66d98
5 changed files with 44 additions and 36 deletions

View File

@ -13,48 +13,16 @@ jobs:
uses: actions/checkout@v2
- name: Install Vita Toolchain
run: |
export PATH=$VITASDK/bin:$PATH
sudo apt-get install cmake
git clone https://github.com/vitasdk/vdpm
cd vdpm
./bootstrap-vitasdk.sh
./install-all.sh
run: ./ci/install-vita-toolchain.sh
- name: Install Vita Packages
run: |
export PATH=$VITASDK/bin:$PATH
sudo apt-get install libarchive-tools
git clone https://github.com/vitasdk/packages.git
cd packages
dir_array=(
"glm"
"vitaShaRK"
"libmathneon"
"kubridge"
"SceShaccCgExt"
"vitaGL"
)
curdir=$(pwd)
for d in "${dir_array[@]}";do
echo "${curdir}${d}"
cd "${curdir}/${d}"
vita-makepkg -C -f -d
tar -C $VITASDK/arm-vita-eabi/ -xvf *-arm.tar.xz
done
run: ./ci/install-vita-packages.sh
- name: Install Libraries
run: |
export PATH=$VITASDK/bin:$PATH
git submodule update --init --recursive
run: ./ci/install-libraries.sh
- name: Build Tools
run: |
mkdir tools
cd tools
cmake .. -DDAWN_BUILD_TARGET=target-tools
make
run: ./ci/build-tools.sh
- name: Build Game
run: |

5
ci/build-tools.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
mkdir tools
cd tools
cmake .. -DDAWN_BUILD_TARGET=target-tools
make

2
ci/install-libraries.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
git submodule update --init --recursive

24
ci/install-vita-packages.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
export VITASDK=/usr/local/vitasdk
export PATH=$VITASDK/bin:$PATH
sudo apt-get install libarchive-tools
git clone https://github.com/vitasdk/packages.git ~/vitapackages
cd ~/vitapackages
dir_array=(
"glm"
"vitaShaRK"
"libmathneon"
"kubridge"
"SceShaccCgExt"
"vitaGL"
)
curdir=$(pwd)
for d in "${dir_array[@]}";do
echo "${curdir}${d}"
cd "${curdir}/${d}"
vita-makepkg -C -f -d
tar -C $VITASDK/arm-vita-eabi/ -xvf *-arm.tar.xz
done

9
ci/install-vita-toolchain.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
export VITASDK=/usr/local/vitasdk
export PATH=$VITASDK/bin:$PATH
sudo apt-get install cmake
git clone https://github.com/vitasdk/vdpm ~/vdpm
cd ~/vdpm
./bootstrap-vitasdk.sh
./install-all.sh