name: build liminix
on:
  pull_request:
    types: [opened, synchronize, edited, reopened]
    branches:
      - main
  push:
    branches:
      - main

jobs:
  build_vm_qemu_mips:
    runs-on: nix
    steps:
      - uses: actions/checkout@v3

      - name: Build VM QEMU MIPS
        run: |
          # Enter the shell
          nix-build ci.nix -A qemu

  build_zyxel-nwa50ax_mips:
    runs-on: nix
    steps:
      - uses: actions/checkout@v3

      - name: Build VM QEMU MIPS
        run: |
          # Enter the shell
          nix-build ci.nix -A qemu

  test_hostapd:
    runs-on: nix
    steps:
      - uses: actions/checkout@v3

      - name: Build VM QEMU MIPS
        run: |
          # Enter the shell
          nix-build ci.nix -A wlan

  test_shell_customization:
    runs-on: nix
    steps:
      - uses: actions/checkout@v3

      - name: Build VM QEMU MIPS
        run: |
          # Enter the shell
          nix-build ci.nix -A custom-shell