Made some bash scripts for common tools
This commit is contained in:
40
.github/workflows/build-helloworld-vita.yml
vendored
40
.github/workflows/build-helloworld-vita.yml
vendored
@ -13,48 +13,16 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Vita Toolchain
|
- name: Install Vita Toolchain
|
||||||
run: |
|
run: ./ci/install-vita-toolchain.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Install Vita Packages
|
- name: Install Vita Packages
|
||||||
run: |
|
run: ./ci/install-vita-packages.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Install Libraries
|
- name: Install Libraries
|
||||||
run: |
|
run: ./ci/install-libraries.sh
|
||||||
export PATH=$VITASDK/bin:$PATH
|
|
||||||
git submodule update --init --recursive
|
|
||||||
|
|
||||||
- name: Build Tools
|
- name: Build Tools
|
||||||
run: |
|
run: ./ci/build-tools.sh
|
||||||
mkdir tools
|
|
||||||
cd tools
|
|
||||||
cmake .. -DDAWN_BUILD_TARGET=target-tools
|
|
||||||
make
|
|
||||||
|
|
||||||
- name: Build Game
|
- name: Build Game
|
||||||
run: |
|
run: |
|
||||||
|
5
ci/build-tools.sh
Executable file
5
ci/build-tools.sh
Executable 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
2
ci/install-libraries.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
git submodule update --init --recursive
|
24
ci/install-vita-packages.sh
Executable file
24
ci/install-vita-packages.sh
Executable 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
9
ci/install-vita-toolchain.sh
Executable 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
|
Reference in New Issue
Block a user