|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ '*' ] |
| 6 | + pull_request: |
| 7 | + branches: [ '*' ] |
| 8 | +jobs: |
| 9 | + build-macos: |
| 10 | + runs-on: macos-latest |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: nasm |
| 18 | + run: brew install nasm |
| 19 | + |
| 20 | + - name: install qemu |
| 21 | + run: brew install qemu |
| 22 | + |
| 23 | + - name: install mtools |
| 24 | + run: brew install mtools |
| 25 | + |
| 26 | + - name: install cdrtools |
| 27 | + run: brew install cdrtools |
| 28 | + |
| 29 | + - name: Build |
| 30 | + run: ./baremetal.sh setup |
| 31 | + |
| 32 | + # this is here just as a QA check to ensure it works on OS X |
| 33 | + - name: Build img |
| 34 | + run: ./baremetal.sh setup |
| 35 | + |
| 36 | + # this is here just as a QA check to ensure it works on OS X |
| 37 | + - name: Build vdi |
| 38 | + run: ./baremetal.sh vdi |
| 39 | + |
| 40 | + # this is here just as a QA check to ensure it works on OS X |
| 41 | + - name: Build vmdk |
| 42 | + run: ./baremetal.sh vmdk |
| 43 | + |
| 44 | + # this is here just as a QA check to ensure it works on OS X |
| 45 | + - name: Build vpc |
| 46 | + run: ./baremetal.sh vpc |
| 47 | + |
| 48 | + build-ubuntu: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + strategy: |
| 51 | + fail-fast: false |
| 52 | + |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v4 |
| 55 | + |
| 56 | + - name: install nasm |
| 57 | + run: sudo apt install nasm |
| 58 | + |
| 59 | + - name: install qemu-utils |
| 60 | + run: sudo apt install qemu-utils |
| 61 | + |
| 62 | + - name: install mtools |
| 63 | + run: sudo apt install mtools |
| 64 | + |
| 65 | + - name: install mkisofs |
| 66 | + run: sudo apt install mkisofs |
| 67 | + |
| 68 | + - name: Build img |
| 69 | + run: ./baremetal.sh setup |
| 70 | + |
| 71 | + - name: Build vdi |
| 72 | + run: ./baremetal.sh vdi |
| 73 | + |
| 74 | + - name: Build vmdk |
| 75 | + run: ./baremetal.sh vmdk |
| 76 | + |
| 77 | + - name: Build vpc |
| 78 | + run: ./baremetal.sh vpc |
| 79 | + |
| 80 | + - uses: actions/upload-artifact@v4 |
| 81 | + with: |
| 82 | + name: BareMetal_OS.img |
| 83 | + path: sys/floppy.img |
| 84 | + |
| 85 | + - uses: actions/upload-artifact@v4 |
| 86 | + with: |
| 87 | + name: BareMetal_OS.vdi |
| 88 | + path: sys/BareMetal_OS.vdi |
| 89 | + |
| 90 | + - uses: actions/upload-artifact@v4 |
| 91 | + with: |
| 92 | + name: BareMetal_OS.vmdk |
| 93 | + path: sys/BareMetal_OS.vmdk |
| 94 | + |
| 95 | + - uses: actions/upload-artifact@v4 |
| 96 | + with: |
| 97 | + name: BareMetal_OS.vpc |
| 98 | + path: sys/BareMetal_OS.vpc |
0 commit comments