stages:
- wrs_sw_compile

job_wrs_compile:
  stage: wrs_sw_compile
  script:
    - cd ..
    - echo "Using `grep -c ^processor /proc/cpuinfo` parallel jobs" 
    - MAKEFLAGS="-j `grep -c ^processor /proc/cpuinfo`" wr-switch-sw/build/wrs_build-all > ${CI_PROJECT_DIR}/log_${CI_JOB_ID}.txt
    - cp *.tar ${CI_PROJECT_DIR}
  artifacts:
    name: "wrs_sw_ci_${CI_JOB_ID}"
    paths:
    - log_${CI_JOB_ID}.txt
    - ./*.tar
  tags:
    - wrs_sw
