@@ -20,12 +20,10 @@ build-amxmodx-x86-linux:
2020 - git clone https://gitlab.sbotnas.io/kevin/hlsdk-am.git
2121 - git clone https://gitlab.sbotnas.io/kevin/metamod-am.git
2222 - git clone -b 5.5.57-linux-glibc2.12-i686 --single-branch https://gitlab.sbotnas.io/kevin/mysql-5.5
23- # - curl https://cdn.sbotnas.io/files/git/amxmodx/mysql-5.5.57-linux-glibc2.12-i686.tar.gz -o mysql-5.5.tar.gz
24- # - mkdir mysql-5.5/
25- # - tar -xf mysql-5.5.tar.gz -C mysql-5.5/ --strip-components=1
2623 - mkdir build
2724 - cd build
2825 script :
26+ - export AMXX_GITLAB_URL="$CI_SERVER_PROTOCOL://$CI_SERVER_HOST/$CI_PROJECT_NAMESPACE/$CI_PROJECT"
2927 - export AMXX_CI_JOB_URL="$CI_JOB_URL"
3028 - export AMXX_CI_PIPELINE_URL="$CI_PIPELINE_URL"
3129 - export AMXX_CI_COMMIT_SHA="$CI_COMMIT_SHA"
@@ -54,12 +52,10 @@ build-amxmodx-x86-windows:
5452 - git clone https://gitlab.sbotnas.io/kevin/hlsdk-am.git
5553 - git clone https://gitlab.sbotnas.io/kevin/metamod-am.git
5654 - git clone -b 5.5.41-win32 --single-branch https://gitlab.sbotnas.io/kevin/mysql-5.5
57- # - curl https://cdn.sbotnas.io/files/git/amxmodx/mysql-5.5.41-win32.zip -o mysql-5.5.zip
58- # - mkdir mysql-5.5
59- # - tar -xf mysql-5.5.zip -C mysql-5.5\ --strip-components=1
6055 - mkdir build
6156 - cd build
6257 script :
58+ - $env:AMXX_GITLAB_URL="env:CI_SERVER_PROTOCOL://CI_SERVER_HOST/CI_PROJECT_NAMESPACE/CI_PROJECT"
6359 - $env:AMXX_CI_JOB_URL = "$env:CI_JOB_URL"
6460 - $env:AMXX_CI_PIPELINE_URL = "$env:CI_PIPELINE_URL"
6561 - $env:AMXX_CI_COMMIT_SHA = "$env:CI_COMMIT_SHA"
@@ -72,40 +68,3 @@ build-amxmodx-x86-windows:
7268 paths :
7369 - build/packages/
7470 expire_in : 1 week
75-
76- # package-game-mods:
77- # stage: package
78- # image: alpine:latest
79- # tags:
80- # - shared
81- # needs: ["build-amxmodx-x86-linux", "build-amxmodx-x86-windows"]
82- # rules:
83- # - if: '$CI_COMMIT_MESSAGE =~ /\[skip ci\]|\[ci skip\]|\[skip-ci\]|\[no ci\]/'
84- # when: never
85- # - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_MESSAGE =~ /\[gitlab-ci\]/'
86- # when: always
87- # before_script:
88- # - apk add --no-cache zip
89- # script:
90- # - mkdir -p releases
91- # - cd amxmodx/build/packages
92-
93- # # Create individual game mod packages
94- # - |
95- # RELEASES_DIR="$CI_PROJECT_DIR/releases"
96- # for game in base cstrike dod esf ns tfc ts; do
97- # if [ -d "$game" ]; then
98- # echo "Creating package for $game..."
99- # cd "$game"
100- # zip -r "$RELEASES_DIR/${game}-${CI_COMMIT_SHORT_SHA}.zip" .
101- # cd ..
102- # fi
103- # done
104-
105- # - echo "Created packages:"
106- # - ls -la "$CI_PROJECT_DIR/releases/"
107- # artifacts:
108- # name: "amxmodx-releases-$CI_COMMIT_SHORT_SHA"
109- # paths:
110- # - releases/*.zip
111- # expire_in: 1 month
0 commit comments