Combine setup and build stage .gitlab-ci.yml
This commit is contained in:
parent
86d33418f7
commit
b192fa1e95
|
@ -1,23 +1,18 @@
|
|||
stages:
|
||||
- setup
|
||||
- build
|
||||
|
||||
setup:
|
||||
stage: setup
|
||||
image: alpine:latest
|
||||
script:
|
||||
- echo "Installing dependencies..."
|
||||
- apk update && apk add --no-cache curl zip unzip tar git cmake make gcc g++ bash ninja
|
||||
- echo "Cloning vcpkg..."
|
||||
- git clone https://github.com/microsoft/vcpkg.git
|
||||
- cd vcpkg
|
||||
- export VCPKG_FORCE_SYSTEM_BINARIES=1
|
||||
- ./bootstrap-vcpkg.sh
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: alpine:latest
|
||||
script:
|
||||
- echo "Installing dependencies..."
|
||||
- apk update && apk add --no-cache curl zip unzip tar git cmake make gcc g++ bash ninja
|
||||
- echo "Cloning and setting up vcpkg..."
|
||||
- git clone https://github.com/microsoft/vcpkg.git
|
||||
- cd vcpkg
|
||||
- export VCPKG_FORCE_SYSTEM_BINARIES=1
|
||||
- ./bootstrap-vcpkg.sh
|
||||
- cd ..
|
||||
- echo "Building the application..."
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
|
|
Loading…
Reference in New Issue