Skip to content
Snippets Groups Projects
Commit e9cab0e8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Remove the variables.

This double definition just seems confusing and error-prone.
Sure, the interpolation form is more verbose and ugly, but at least
it's not duplicative.
parent afe84bd6
No related branches found
No related tags found
No related merge requests found
Pipeline #5607 failed
# TODO: Investiage $VARIABLES vs $[[ inputs.interpolation ]] # TODO: Add support for GTK utilities
# Add support for GTK utilities
# The bad touching needs to be solved in the build system, but # The bad touching needs to be solved in the build system, but
# maybe there's a way to automate it with needs? # maybe there's a way to automate it with needs?
# The only reason the second column of dependencies exists is
# because we build uifctest.
spec: spec:
inputs: inputs:
...@@ -24,15 +21,6 @@ spec: ...@@ -24,15 +21,6 @@ spec:
extends: .rules extends: .rules
tags: tags:
- "$[[ inputs.tagname ]]" - "$[[ inputs.tagname ]]"
variables:
CROSS_PLATFORM: "$[[ inputs.cross_platform ]]"
OS: "$[[ inputs.os ]]"
PLATFORM: "$[[ inputs.platform ]]"
OSP: "$[[ inputs.os ]]-$[[ inputs.platform ]]"
BUILD_FLAGS: "$[[ inputs.build_flags ]]"
NO_JAVASCRIPT: "$[[ inputs.no_javascript ]]"
HAS_CURSES: "$[[ inputs.has_curses ]]"
GIT_STRATEGY: fetch
".$[[ inputs.os ]]-build": ".$[[ inputs.os ]]-build":
stage: build stage: build
...@@ -45,18 +33,17 @@ spec: ...@@ -45,18 +33,17 @@ spec:
"spidermonkey-$[[ inputs.os ]]": "spidermonkey-$[[ inputs.os ]]":
extends: extends:
- .$[[ inputs.os ]]-build - .$[[ inputs.os ]]-build
- .rules
script: script:
- cd 3rdp/build - cd 3rdp/build
- touch depend - touch depend
- gmake ${BUILD_FLAGS} libmozjs - gmake $[[ inputs.build_flags ]] libmozjs
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "spidermonkey-${OSP}" name: "spidermonkey-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "3rdp/*.*.*.release/mozjs" - "3rdp/*.*.*.release/mozjs"
rules: rules:
- if: $NO_JAVASCRIPT == "yes" - if: $[[ inputs.no_javascript ]] == "yes"
when: never when: never
- !reference [.rules, rules] - !reference [.rules, rules]
...@@ -66,10 +53,10 @@ spec: ...@@ -66,10 +53,10 @@ spec:
script: script:
- cd 3rdp/build - cd 3rdp/build
- touch depend - touch depend
- gmake ${BUILD_FLAGS} cryptlib - gmake $[[ inputs.build_flags ]] cryptlib
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "cryptlib-${OSP}" name: "cryptlib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "3rdp/*.*.*.release/cl" - "3rdp/*.*.*.release/cl"
...@@ -79,10 +66,10 @@ spec: ...@@ -79,10 +66,10 @@ spec:
script: script:
- cd src/xpdev - cd src/xpdev
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "xpdev-${OSP}" name: "xpdev-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/xpdev/*.*.*.lib.release*" - "src/xpdev/*.*.*.lib.release*"
- "src/xpdev/*.*.*.obj.release*/*.o*" - "src/xpdev/*.*.*.obj.release*/*.o*"
...@@ -93,10 +80,10 @@ spec: ...@@ -93,10 +80,10 @@ spec:
script: script:
- cd src/encode - cd src/encode
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "encode-${OSP}" name: "encode-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/encode/*.*.*.lib.release*" - "src/encode/*.*.*.lib.release*"
- "src/encode/*.*.*.obj.release*/*.o*" - "src/encode/*.*.*.obj.release*/*.o*"
...@@ -107,10 +94,10 @@ spec: ...@@ -107,10 +94,10 @@ spec:
script: script:
- cd src/hash - cd src/hash
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "hash-${OSP}" name: "hash-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/hash/*.*.*.lib.release*" - "src/hash/*.*.*.lib.release*"
- "src/hash/*.*.*.obj.release*/*.o*" - "src/hash/*.*.*.obj.release*/*.o*"
...@@ -121,10 +108,10 @@ spec: ...@@ -121,10 +108,10 @@ spec:
script: script:
- cd src/conio - cd src/conio
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "ciolib-${OSP}" name: "ciolib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/conio/*.*.*.lib.release*" - "src/conio/*.*.*.lib.release*"
- "src/conio/*.*.*.obj.release*/*.o*" - "src/conio/*.*.*.obj.release*/*.o*"
...@@ -135,10 +122,10 @@ spec: ...@@ -135,10 +122,10 @@ spec:
script: script:
- cd src/sftp - cd src/sftp
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "sftp-${OSP}" name: "sftp-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sftp/*.*.*.lib.release*" - "src/sftp/*.*.*.lib.release*"
- "src/sftp/*.*.*.obj.release*/*.o*" - "src/sftp/*.*.*.obj.release*/*.o*"
...@@ -149,10 +136,10 @@ spec: ...@@ -149,10 +136,10 @@ spec:
script: script:
- cd src/smblib - cd src/smblib
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "smblib-${OSP}" name: "smblib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/smblib/*.*.*.lib.release*" - "src/smblib/*.*.*.lib.release*"
- "src/smblib/*.*.*.obj.release*/*.o*" - "src/smblib/*.*.*.obj.release*/*.o*"
...@@ -163,10 +150,10 @@ spec: ...@@ -163,10 +150,10 @@ spec:
script: script:
- cd src/uifc - cd src/uifc
- touch depend - touch depend
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "uifc-${OSP}" name: "uifc-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/uifc/*.*.*.lib.release*" - "src/uifc/*.*.*.lib.release*"
- "src/uifc/*.*.*.obj.release*/*.o*" - "src/uifc/*.*.*.obj.release*/*.o*"
...@@ -177,10 +164,10 @@ spec: ...@@ -177,10 +164,10 @@ spec:
script: script:
- cd src/sbbs3 - cd src/sbbs3
- touch depend - touch depend
- gmake ${BUILD_FLAGS} gitinfo - gmake $[[ inputs.build_flags ]] gitinfo
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "gitinfo-${OSP}" name: "gitinfo-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/git_*.h" - "src/sbbs3/git_*.h"
...@@ -199,10 +186,10 @@ spec: ...@@ -199,10 +186,10 @@ spec:
- touch uifc - touch uifc
- touch uifc-mt - touch uifc-mt
- touch cl - touch cl
- gmake ${BUILD_FLAGS} GIT=NO - gmake $[[ inputs.build_flags ]] GIT=NO
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "scfg-${OSP}" name: "scfg-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/scfg/*.exe.release/*" - "src/sbbs3/scfg/*.exe.release/*"
- "src/sbbs3/scfg/*.obj.release*/*.o*" - "src/sbbs3/scfg/*.obj.release*/*.o*"
...@@ -230,10 +217,10 @@ spec: ...@@ -230,10 +217,10 @@ spec:
- touch ciolib-mt - touch ciolib-mt
- touch uifc - touch uifc
- touch uifc-mt - touch uifc-mt
- gmake ${BUILD_FLAGS} GIT=NO - gmake $[[ inputs.build_flags ]] GIT=NO
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "uedit-${OSP}" name: "uedit-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/uedit/*.exe.release/*" - "src/sbbs3/uedit/*.exe.release/*"
- "src/sbbs3/uedit/*.obj.release*/*.o*" - "src/sbbs3/uedit/*.obj.release*/*.o*"
...@@ -246,7 +233,7 @@ spec: ...@@ -246,7 +233,7 @@ spec:
- job: "xpdev-$[[ inputs.os ]]" - job: "xpdev-$[[ inputs.os ]]"
- job: "gitinfo-$[[ inputs.os ]]" - job: "gitinfo-$[[ inputs.os ]]"
rules: rules:
- if: $HAS_CURSES == "no" - if: $[[ inputs.has_curses ]] == "no"
when: never when: never
- !reference [.rules, rules] - !reference [.rules, rules]
...@@ -264,10 +251,10 @@ spec: ...@@ -264,10 +251,10 @@ spec:
- touch ciolib-mt - touch ciolib-mt
- touch uifc - touch uifc
- touch uifc-mt - touch uifc-mt
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "umonitor-${OSP}" name: "umonitor-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/umonitor/*.exe.release/*" - "src/sbbs3/umonitor/*.exe.release/*"
- "src/sbbs3/umonitor/*.obj.release*/*.o*" - "src/sbbs3/umonitor/*.obj.release*/*.o*"
...@@ -294,10 +281,10 @@ spec: ...@@ -294,10 +281,10 @@ spec:
- touch ciolib-mt - touch ciolib-mt
- touch uifc - touch uifc
- touch uifc-mt - touch uifc-mt
- gmake ${BUILD_FLAGS} GIT=NO standalone-utils - gmake $[[ inputs.build_flags ]] GIT=NO standalone-utils
artifacts: artifacts:
expire_in: 30 mins expire_in: 30 mins
name: "utils-${OSP}" name: "utils-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/*.exe.release/*" - "src/sbbs3/*.exe.release/*"
- "src/sbbs3/*.obj.release*/*.o*" - "src/sbbs3/*.obj.release*/*.o*"
...@@ -343,9 +330,9 @@ spec: ...@@ -343,9 +330,9 @@ spec:
- touch umonitor/uifc-mt - touch umonitor/uifc-mt
- touch umonitor/xpdev-mt - touch umonitor/xpdev-mt
- touch umonitor/smblib - touch umonitor/smblib
- gmake ${BUILD_FLAGS} GIT=NO all - gmake $[[ inputs.build_flags ]] GIT=NO all
artifacts: artifacts:
name: "sbbs-${OSP}" name: "sbbs-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/*.exe.release/*" - "src/sbbs3/*.exe.release/*"
- "src/sbbs3/*.lib.release/*" - "src/sbbs3/*.lib.release/*"
...@@ -366,9 +353,9 @@ spec: ...@@ -366,9 +353,9 @@ spec:
- job: "umonitor-$[[ inputs.os ]]" - job: "umonitor-$[[ inputs.os ]]"
- job: "utils-$[[ inputs.os ]]" - job: "utils-$[[ inputs.os ]]"
rules: rules:
- if: $NO_JAVASCRIPT == "yes" - if: $[[ inputs.no_javascript ]] == "yes"
when: never when: never
- if: $CROSS_PLATFORM == "yes" - if: $[[ inputs.cross_platform ]] == "yes"
when: never when: never
- !reference [.rules, rules] - !reference [.rules, rules]
...@@ -387,9 +374,9 @@ spec: ...@@ -387,9 +374,9 @@ spec:
- touch uifc-mt - touch uifc-mt
- touch sftp-mt - touch sftp-mt
- touch cl - touch cl
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
name: "syncterm-${OSP}" name: "syncterm-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/syncterm/*.exe.release/*" - "src/syncterm/*.exe.release/*"
needs: needs:
...@@ -410,9 +397,9 @@ spec: ...@@ -410,9 +397,9 @@ spec:
- touch xpdev - touch xpdev
- touch xpdev-mt - touch xpdev-mt
- touch ciolib-mt - touch ciolib-mt
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
name: "syncdraw-${OSP}" name: "syncdraw-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/syncdraw/*.exe.release/*" - "src/syncdraw/*.exe.release/*"
needs: needs:
...@@ -436,9 +423,9 @@ spec: ...@@ -436,9 +423,9 @@ spec:
- touch sftp-mt - touch sftp-mt
- touch cl - touch cl
- touch js - touch js
- gmake ${BUILD_FLAGS} jsdoor - gmake $[[ inputs.build_flags ]] jsdoor
artifacts: artifacts:
name: "jsdoor-${OSP}" name: "jsdoor-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sbbs3/*.exe.release/*" - "src/sbbs3/*.exe.release/*"
needs: needs:
...@@ -452,7 +439,7 @@ spec: ...@@ -452,7 +439,7 @@ spec:
- job: "uifc-$[[ inputs.os ]]" - job: "uifc-$[[ inputs.os ]]"
- job: "xpdev-$[[ inputs.os ]]" - job: "xpdev-$[[ inputs.os ]]"
rules: rules:
- if: $NO_JAVASCRIPT == "yes" - if: $[[ inputs.no_javascript ]] == "yes"
when: never when: never
- !reference [.rules, rules] - !reference [.rules, rules]
...@@ -464,9 +451,9 @@ spec: ...@@ -464,9 +451,9 @@ spec:
- touch depend - touch depend
- touch xpdev - touch xpdev
- touch xpdev-mt - touch xpdev-mt
- gmake ${BUILD_FLAGS} - gmake $[[ inputs.build_flags ]]
artifacts: artifacts:
name: "sexpots-${OSP}" name: "sexpots-$[[ inputs.os ]]-$[[ inputs.platform ]]"
paths: paths:
- "src/sexpots/*.exe.release/*" - "src/sexpots/*.exe.release/*"
needs: needs:
...@@ -480,8 +467,8 @@ spec: ...@@ -480,8 +467,8 @@ spec:
dependencies: dependencies:
- "jsdoor-$[[ inputs.os ]]" - "jsdoor-$[[ inputs.os ]]"
rules: rules:
- if: $CROSS_PLATFORM == "yes" - if: $[[ inputs.cross_platform ]] == "yes"
when: never when: never
- if: $NO_JAVASCRIPT == "yes" - if: $[[ inputs.no_javascript ]] == "yes"
when: never when: never
- !reference [.rules, rules] - !reference [.rules, rules]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment