remove cmake task from gitlab ci and run it within every task

This commit is contained in:
lukas 2021-04-09 16:10:13 +02:00
parent 2d1e99260d
commit 94964d69be

View File

@ -1,95 +1,68 @@
stages: stages:
- cmake
- build - build
- post - post
# Unix Build # Unix Build
cmake:
stage: cmake
image: luki42/dynuiprefresher_build:latest
script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
artifacts:
paths:
- build/
- inc/
- postinst
build: build:
stage: build stage: build
image: luki42/dynuiprefresher_build:latest image: luki42/dynuiprefresher_build:latest
script: script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
- cd build - cd build
- make dynuiprefresher - make dynuiprefresher
artifacts: artifacts:
paths: paths:
- build/ - build/bin/
- inc/
- postinst
dependencies:
- cmake
build_package: build_package:
stage: post stage: post
image: luki42/dynuiprefresher_build:latest image: luki42/dynuiprefresher_build:latest
script: script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
- cd build - cd build
- make package - make package
artifacts: artifacts:
paths: paths:
- build/ - build/packages/
- inc/ needs:
- postinst
dependencies:
- build - build
test: test:
stage: post stage: post
image: luki42/dynuiprefresher_build:latest image: luki42/dynuiprefresher_build:latest
script: script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
- cd build - cd build
- make build-test - make build-test
artifacts: artifacts:
reports: reports:
junit: build/*.xml junit: build/*.xml
dependencies: needs:
- build - build
# Windows Build # Windows Build
cmake_win64:
stage: cmake
image: luki42/dynuiprefresher_build:windows
script:
- cmake -S . -B build -D WinBuild=ON
artifacts:
paths:
- build/
- inc/
build_win64: build_win64:
stage: build stage: build
image: luki42/dynuiprefresher_build:windows image: luki42/dynuiprefresher_build:windows
script: script:
- cmake -S . -B build -D WinBuild=ON
- cd build - cd build
- make dynuiprefresher - make dynuiprefresher
artifacts: artifacts:
paths: paths:
- build/ - build/bin/
- inc/
dependencies:
- cmake_win64
build_package_win64: build_package_win64:
stage: post stage: post
image: luki42/dynuiprefresher_build:windows image: luki42/dynuiprefresher_build:windows
script: script:
- cmake -S . -B build -D WinBuild=ON
- cd build - cd build
- make package - make package
artifacts: artifacts:
paths: paths:
- build/ - build/packages/
- inc/ needs:
dependencies:
- build_win64 - build_win64