This commit is contained in:
parent
9bce5bb39f
commit
af2df22b4f
1 changed files with 6 additions and 5 deletions
|
@ -1,17 +1,18 @@
|
||||||
# .woodpecker.yml
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build the C++ project
|
- name: Build the C++ project
|
||||||
image: gcc:13 # Replace with clang or another version if needed
|
image: gcc:13
|
||||||
environment:
|
environment:
|
||||||
BUILD_DIR: build
|
BUILD_DIR: build
|
||||||
commands:
|
commands:
|
||||||
- echo "[*] Installing dependencies"
|
- echo "[*] Installing dependencies"
|
||||||
- apt-get update && apt-get install -y cmake make g++ git
|
- 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"
|
- echo "[*] Creating build directory"
|
||||||
- mkdir -p $BUILD_DIR
|
- mkdir -p $BUILD_DIR
|
||||||
- cd $BUILD_DIR
|
- cd $BUILD_DIR
|
||||||
- echo "[*] Running CMake"
|
- echo "[*] Running CMake"
|
||||||
- cmake ..
|
- cmake /woodpecker/src
|
||||||
- echo "[*] Building project"
|
- echo "[*] Building project"
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
|
|
||||||
|
@ -45,6 +46,6 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
GITEA_URL: "https://git.xyro.win"
|
GITEA_URL: "https://git.xyro.win"
|
||||||
GITEA_TOKEN: "${GITEA_TOKEN}" # Make sure to set this secret in the Woodpecker UI
|
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)
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue