name: Build NFDOS ISO

on:
  push:
    branches: [ main ]

jobs:
  build:
    runs-on: docker
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup toolchain
        run: |
          apt-get update
          apt-get install -y make gcc cpio grub-pc-bin xorriso gzip python3

      - name: Build ISO
        run: make iso

      - name: Upload artifact
        uses: actions/upload-artifact@v3
        with:
          name: nfdos-iso
          path: dist/nfdos-*.iso
