39 lines
765 B
YAML
39 lines
765 B
YAML
stages:
|
|
- build
|
|
|
|
variables:
|
|
F_CPU: "8000000UL"
|
|
|
|
before_script:
|
|
# nur nötig bei Shell Runner → Tools müssen installiert sein
|
|
- avr-gcc --version
|
|
|
|
build_dev:
|
|
stage: build
|
|
tags:
|
|
- avr
|
|
script:
|
|
- VERSION=$(cat VERSION.txt)
|
|
- echo "Building version $VERSION"
|
|
- make MCU=atmega644pa BUILD_TYPE=dev VERSION=$VERSION
|
|
artifacts:
|
|
paths:
|
|
- build/dev/*.hex
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "dev"'
|
|
|
|
build_prod:
|
|
stage: build
|
|
tags:
|
|
- avr
|
|
script:
|
|
- VERSION=$(cat VERSION.txt)
|
|
- echo "Building DEV-Version $VERSION"
|
|
- make MCU=atmega644pa BUILD_TYPE=prod VERSION=$VERSION
|
|
artifacts:
|
|
paths:
|
|
- build/prod/*.hex
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
|