name: build-helloworld-vita on: push: branches: [ master ] jobs: build: runs-on: ubuntu-latest env: VITASDK: /usr/local/vitasdk steps: - name: Checkout 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 - 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 - name: Install Libraries run: | export PATH=$VITASDK/bin:$PATH git submodule update --init --recursive - name: Build Tools run: | mkdir tools cd tools cmake .. -DDAWN_BUILD_TARGET=target-tools make - name: Build Game run: | export PATH=$VITASDK/bin:$PATH mkdir build cd build cmake .. -DDAWN_BUILD_TARGET=target-helloworld-vita make - name: Deploying env: DAWN_SSH_KEY: ${{ secrets.DAWN_SSH_KEY }} run: | mkdir -p ~/.ssh echo -e "${DAWN_SSH_KEY}" > ~/.ssh/id_rsa chmod og-rwx ~/.ssh/id_rsa ssh-keyscan -H wish.moe >> ~/.ssh/known_hosts ssh -t yourwishes@wish.moe "mkdir -p /home/yourwishes/Dawn/vita/debug" scp ./build/src/dawnvita/HelloWorld.vpk yourwishes@wish.moe:/home/yourwishes/Dawn/vita/debug/