Raymond Toy pushed to branch issue-389-reduce-duplication-in-ci-rules at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • .gitlab-ci-functions.yml deleted
    1
    -.build_cmucl:
    
    2
    -  script:
    
    3
    -    # Do cross compile first
    
    4
    -    #- bin/create-target.sh xtarget x86_linux_clang
    
    5
    -    #- bin/create-target.sh xcross x86_linux_clang
    
    6
    -    #- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
    
    7
    -    # Regular build using the cross-compiled result or snapshot.  The
    
    8
    -    # analyzer job requires gcc, so make sure we build with gcc here
    
    9
    -    # instead of clang. 
    
    10
    -    - bin/build.sh $bootstrap -b build -R -C "" -o snapshot/bin/lisp
    
    11
    -    # When the result of `git describe` cannot be used as a version
    
    12
    -    # string, an alternative can be provided with the -V flag
    
    13
    -    - bin/make-dist.sh -I dist build-4
    
    14
    -    

  • .gitlab-ci.yml
    ... ... @@ -3,9 +3,22 @@ variables:
    3 3
       version: "2024-08-x86"
    
    4 4
       bootstrap: "-B boot-2024-08"
    
    5 5
     
    
    6
    -include:
    
    7
    -  - local: .gitlab-ci-functions.yml
    
    8
    -
    
    6
    +# Rule to build cmucl for all OSes, assuming we don't need anything
    
    7
    +# special and the option '-C ""' is good enough.
    
    8
    +.build_cmucl:
    
    9
    +  script:
    
    10
    +    # Do cross compile first
    
    11
    +    #- bin/create-target.sh xtarget x86_linux_clang
    
    12
    +    #- bin/create-target.sh xcross x86_linux_clang
    
    13
    +    #- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
    
    14
    +    # Regular build using the cross-compiled result or snapshot.  The
    
    15
    +    # analyzer job requires gcc, so make sure we build with gcc here
    
    16
    +    # instead of clang. 
    
    17
    +    - bin/build.sh $bootstrap -b build -R -C "" -o snapshot/bin/lisp
    
    18
    +    # When the result of `git describe` cannot be used as a version
    
    19
    +    # string, an alternative can be provided with the -V flag
    
    20
    +    - bin/make-dist.sh -I dist build-4
    
    21
    +    
    
    9 22
     stages:
    
    10 23
       - install
    
    11 24
       - build