Update .woodpecker/default.yml
Some checks failed
ci/woodpecker/push/default Pipeline failed

This commit is contained in:
nyosic 2025-04-04 12:50:14 +00:00
parent 9bce5bb39f
commit af2df22b4f

View file

@ -1,17 +1,18 @@
# .woodpecker.yml
steps:
- name: Build the C++ project
image: gcc:13 # Replace with clang or another version if needed
image: gcc:13
environment:
BUILD_DIR: build
commands:
- echo "[*] Installing dependencies"
- apt-get update && apt-get install -y cmake make g++ git
- echo "[*] Cloning repository"
- git clone https://git.xyro.win/nyosic/MarioDB.git /woodpecker/src
- echo "[*] Creating build directory"
- mkdir -p $BUILD_DIR
- cd $BUILD_DIR
- echo "[*] Running CMake"
- cmake ..
- cmake /woodpecker/src
- echo "[*] Building project"
- make -j$(nproc)
@ -45,6 +46,6 @@ steps:
environment:
GITEA_URL: "https://git.xyro.win"
GITEA_TOKEN: "${GITEA_TOKEN}" # Make sure to set this secret in the Woodpecker UI
REPO_NAME: "my-repo" # Replace with your actual repository name
REPO_NAME: "MarioDB" # Replace with your actual repository name
TAG_NAME: "${CI_COMMIT_REF}" # Use the commit reference (tag name)
ASSET_PATH: "build/my-cpp-program" # Path to the compiled C++ binary
ASSET_PATH: "build/main" # Path to the compiled C++ binary