Combine setup and build stage .gitlab-ci.yml

This commit is contained in:
Jack Christensen 2024-08-10 23:40:23 -04:00
parent 86d33418f7
commit b192fa1e95
1 changed files with 8 additions and 13 deletions

View File

@ -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