Try to generate vsm in the CI #79
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| repository_dispatch: | |
| types: [run_build] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: ps2dev/ps2sdk:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| apk add build-base git | |
| - name: Install ps2stuff | |
| run: | | |
| git clone https://github.com/ps2dev/ps2stuff.git | |
| cd ps2stuff | |
| make -j $(getconf _NPROCESSORS_ONLN) clean | |
| make -j $(getconf _NPROCESSORS_ONLN) all | |
| make -j $(getconf _NPROCESSORS_ONLN) install | |
| - name: Install masp | |
| run: | | |
| git clone https://github.com/fjtrujy/masp.git | |
| cd masp | |
| cmake -B build-cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$PS2DEV | |
| cmake --build build-cmake --config RelWithDebInfo --target install | |
| - name: Install openvcl | |
| run: | | |
| git clone https://github.com/fjtrujy/openvcl.git | |
| cd openvcl | |
| make -j $(getconf _NPROCESSORS_ONLN) clean | |
| make -j $(getconf _NPROCESSORS_ONLN) all | |
| make -j $(getconf _NPROCESSORS_ONLN) install | |
| - name: Compile project | |
| run: | | |
| make -j $(getconf _NPROCESSORS_ONLN) clean | |
| make -j $(getconf _NPROCESSORS_ONLN) all | |
| make -j $(getconf _NPROCESSORS_ONLN) install | |
| - name: Compile GLUT | |
| run: | | |
| cd glut | |
| make -j $(getconf _NPROCESSORS_ONLN) clean | |
| make -j $(getconf _NPROCESSORS_ONLN) all | |
| make -j $(getconf _NPROCESSORS_ONLN) install | |
| - name: Compile examples | |
| run: | | |
| cd examples | |
| cd box && make clean all && cd .. | |
| cd logo && make clean all && cd .. | |
| cd performance && make clean all && cd .. | |
| cd tricked_out && make clean all && cd .. | |
| cd nehe/lesson02 && make clean all && cd ../.. | |
| cd nehe/lesson03 && make clean all && cd ../.. | |
| cd nehe/lesson04 && make clean all && cd ../.. | |
| cd nehe/lesson05 && make clean all && cd ../.. | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: examples | |
| path: | | |
| examples/**/*.elf | |
| examples/**/*.gl | |
| examples/**/*.rtx | |
| examples/**/*.bin |