|
| 1 | +name: Build |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [ "Dev" ] |
| 5 | + pull_request: |
| 6 | + branches: [ "Dev" ] |
| 7 | + |
| 8 | +jobs: |
| 9 | + build-platforms: |
| 10 | + name: Build N64 platform packages |
| 11 | + uses: PracticeROM/gz-release/.github/workflows/build-platforms.yml@master |
| 12 | + with: |
| 13 | + repository: PracticeROM/gz-release |
| 14 | + ref: master |
| 15 | + |
| 16 | + test_assembly_build: |
| 17 | + name: Build - Assembly |
| 18 | + needs: build-platforms |
| 19 | + runs-on: ubuntu-latest |
| 20 | + container: |
| 21 | + image: practicerom/practicerom-dev |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + python-version: ["3.x"] |
| 25 | + |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + - name: Set up Python ${{ matrix.python-version }} |
| 29 | + uses: actions/setup-python@v5 |
| 30 | + with: |
| 31 | + python-version: ${{ matrix.python-version }} |
| 32 | + - name: Create fake base ROM |
| 33 | + run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1 |
| 34 | + - name: Run build scripts |
| 35 | + run: python ASM/build.py --no-compile-c |
| 36 | + test_C_build: |
| 37 | + name: Build - C |
| 38 | + needs: build-platforms |
| 39 | + runs-on: ubuntu-latest |
| 40 | + container: |
| 41 | + image: practicerom/practicerom-dev |
| 42 | + strategy: |
| 43 | + matrix: |
| 44 | + python-version: [ "3.x" ] |
| 45 | + |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v4 |
| 48 | + - name: Set up Python ${{ matrix.python-version }} |
| 49 | + uses: actions/setup-python@v5 |
| 50 | + with: |
| 51 | + python-version: ${{ matrix.python-version }} |
| 52 | + - name: Create fake base ROM |
| 53 | + run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1 |
| 54 | + - name: Run build scripts |
| 55 | + run: python ASM/build.py --diff-only |
| 56 | + test_full_build: |
| 57 | + name: Build - Full |
| 58 | + needs: build-platforms |
| 59 | + runs-on: ubuntu-latest |
| 60 | + container: |
| 61 | + image: practicerom/practicerom-dev |
| 62 | + strategy: |
| 63 | + matrix: |
| 64 | + python-version: [ "3.x" ] |
| 65 | + |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v4 |
| 68 | + - name: Set up Python ${{ matrix.python-version }} |
| 69 | + uses: actions/setup-python@v5 |
| 70 | + with: |
| 71 | + python-version: ${{ matrix.python-version }} |
| 72 | + - name: Create fake base ROM |
| 73 | + run: dd if=/dev/zero of=ASM/roms/base.z64 bs=64M count=1 |
| 74 | + - name: Run build scripts |
| 75 | + run: python ASM/build.py |
| 76 | + |
0 commit comments