Update main.c #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Shellbat | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up environment | |
| run: | | |
| echo "VITASDK=/usr/local/vitasdk" >> $GITHUB_ENV | |
| echo "/usr/local/vitasdk/bin" >> $GITHUB_PATH | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake build-essential python3 git | |
| - name: Install VitaSDK | |
| run: | | |
| git clone https://github.com/vitasdk/vdpm | |
| cd vdpm | |
| ./bootstrap-vitasdk.sh | |
| ./install-all.sh | |
| - name: Build | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/vitasdk/share/vita.toolchain.cmake | |
| make | |
| - name: Upload shellbat artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: shellbat-suprx | |
| path: build/shellbat.suprx |