stages:
  - build

variables:
  GIT_SUBMODULE_STRATEGY: recursive

build-p1:
  stage: build
  tags:
    - nixos
  script:
    - nix-shell nix/shell.nix --command "idf.py -g p1 build"
  artifacts:
    expose_as: 'Proto 1 ELF'
    paths: ['build/badge23.elf']
    expire_in: 5 hours

build-p3:
  stage: build
  tags:
    - nixos
  script:
    - nix-shell nix/shell.nix --command "idf.py -g p3 build"
  artifacts:
    expose_as: 'Proto 3 ELF'
    paths: ['build/badge23.elf']
    expire_in: 5 hours

build-p4:
  stage: build
  tags:
    - nixos
  script:
    - nix-shell nix/shell.nix --command "idf.py -g p4 build"
  artifacts:
    expose_as: 'Proto 4 ELF'
    paths: ['build/badge23.elf']
    expire_in: 5 hours

build-p6:
  stage: build
  tags:
    - nixos
  script:
    - nix-shell nix/shell.nix --command "idf.py -g p6 build"
  artifacts:
    expose_as: 'Proto 6 ELF'
    paths: ['build/badge23.elf']
    expire_in: 5 hours
