]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
pipeline: prefer to skip gmqcc build by downloading from beta.xonotic.org and update...
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 29 Nov 2022 07:09:06 +0000 (17:09 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 29 Nov 2022 07:13:30 +0000 (17:13 +1000)
.gitlab-ci.yml

index 77155987c6d5628c03ba16f706f6c98a2ef97e25..b6735a471d6ea8e3d1dd03101d1620ae6d697366 100644 (file)
@@ -12,9 +12,15 @@ before_script:
 # - export CC="gcc -pipe -march=native -mtune=native"\r
   - export CC="gcc -pipe"\r
 \r
-  - git clone --depth=1 --branch=main https://gitlab.com/xonotic/gmqcc.git gmqcc\r
-  - make -C gmqcc || exit 1\r
-  - export QCC="$PWD/gmqcc/gmqcc"\r
+  - >\r
+    if wget -nv https://beta.xonotic.org/pipeline-bin/gmqcc ; then\r
+      export QCC="$PWD/gmqcc"\r
+      chmod +x "$QCC"\r
+    else\r
+      git clone --depth=1 --branch=main https://gitlab.com/xonotic/gmqcc.git gmqcc\r
+      make -C gmqcc || exit 1\r
+      export QCC="$PWD/gmqcc/gmqcc"\r
+    fi\r
 \r
   # Makefile: don't complain about lack of tags (fetching them is slow)\r
   - export QCCFLAGS_WATERMARK=gitlab_pipeline\r
@@ -33,7 +39,7 @@ test_sv_game:
   stage: test\r
   script:\r
     - >\r
-      if wget -nv https://beta.xonotic.org/autobuild-rsync/Xonotic/xonotic-linux64-dedicated ; then\r
+      if wget -nv https://beta.xonotic.org/pipeline-bin/xonotic-linux64-dedicated ; then\r
         export ENGINE="$PWD/xonotic-linux64-dedicated"\r
         chmod +x "$ENGINE"\r
       else\r