|
| 1 | +name: Build and Release (Linux Debug) |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + |
| 8 | +jobs: |
| 9 | + build: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + |
| 12 | + steps: |
| 13 | + - name: Checkout repository |
| 14 | + uses: actions/checkout@v4 |
| 15 | + |
| 16 | + - name: Set up Python 3 |
| 17 | + uses: actions/setup-python@v4 |
| 18 | + with: |
| 19 | + python-version: '3.x' |
| 20 | + |
| 21 | + - name: Install required libs |
| 22 | + run: | |
| 23 | + sudo apt-get update |
| 24 | + sudo apt-get install -y g++ make build-essential cmake libarchive-dev python3 genisoimage python3-pip |
| 25 | +
|
| 26 | + - name: Install PyInstaller |
| 27 | + run: pip install pyinstaller |
| 28 | + |
| 29 | + - name: Run configure |
| 30 | + run: ./configure |
| 31 | + |
| 32 | + - name: Compile all C++ programs (Debug) |
| 33 | + run: make debug |
| 34 | + |
| 35 | + - name: Compile IMGConverter |
| 36 | + run: pyinstaller --onefile --distpath . tools/IMGConverter/IMGConverter.py |
| 37 | + |
| 38 | + - name: Compile AdultCornerDecoder |
| 39 | + run: pyinstaller --onefile --distpath . tools/AdultCornerDecoder/decoder.py |
| 40 | + |
| 41 | + - name: Compile AdultCornerEncoder |
| 42 | + run: pyinstaller --onefile --distpath . tools/AdultCornerEncoder/encoder.py |
| 43 | + |
| 44 | + - name: Compile IMGIdentifier |
| 45 | + run: pyinstaller --onefile --distpath . tools/IMGIdentifier/IMGIdentifier.py |
| 46 | + |
| 47 | + - name: Compile OBCEditor |
| 48 | + run: pyinstaller --onefile --distpath . tools/OBCEditor/OBCEditor.py |
| 49 | + |
| 50 | + - name: Compile PetiteDetector |
| 51 | + run: pyinstaller --onefile --distpath . tools/PetiteDetector/PetiteDetector.py |
| 52 | + |
| 53 | + - name: Compile PKLiteDetector |
| 54 | + run: pyinstaller --onefile --distpath . tools/PKLiteDetector/PKLiteDetector.py |
| 55 | + |
| 56 | + - name: Compile SecuROMDetector |
| 57 | + run: pyinstaller --onefile --distpath . tools/SecuROMDetector/SecuROMDetector.py |
| 58 | + |
| 59 | + - name: Compile copyDatas |
| 60 | + run: pyinstaller --onefile --distpath . tools/copyDatas/copyDatas.py |
| 61 | + |
| 62 | + - name: Upload Artifacts |
| 63 | + uses: actions/upload-artifact@v4 |
| 64 | + with: |
| 65 | + name: compiled-linux |
| 66 | + path: | |
| 67 | + binaries/LoaderMDO/LoaderMDO |
| 68 | + binaries/BCD1Creator/BCD1Creator |
| 69 | + binaries/DEV7Launcher/DEV7Launcher |
| 70 | + binaries/ModelPathDumper/ModelPathDumper |
| 71 | + binaries/OBJDumper/OBJDumper |
| 72 | + binaries/OBCViewer/OBCViewer |
| 73 | + binaries/CTRKViewer/CTRKViewer |
| 74 | + binaries/PLAViewer/PLAViewer |
| 75 | + IMGConverter |
| 76 | + AdultCornerDecoder |
| 77 | + AdultCornerEncoder |
| 78 | + IMGIdentifier |
| 79 | + OBCEditor |
| 80 | + PetiteDetector |
| 81 | + PKLiteDetector |
| 82 | + SecuROMDetector |
| 83 | + copyDatas |
0 commit comments