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

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -3,6 +3,18 @@ variables:
    3 3
       version: "2024-08-x86"
    
    4 4
       bootstrap: "-B boot-2024-08"
    
    5 5
     
    
    6
    +# Install configuration
    
    7
    +.install_template: &install_configuration
    
    8
    +  stage: install
    
    9
    +  artifacts:
    
    10
    +    paths:
    
    11
    +      - snapshot/
    
    12
    +  script:
    
    13
    +    - wget -nv $download_url/cmucl-$version-$osname.tar.bz2
    
    14
    +    - wget -nv $download_url/cmucl-$version-$osname.extra.tar.bz2
    
    15
    +    - mkdir snapshot
    
    16
    +    - (cd snapshot; tar xjf ../cmucl-$version-$osname.tar.bz2; tar xjf ../cmucl-$version-$osname.extra.tar.bz2)
    
    17
    +
    
    6 18
     # Rule to build cmucl for all OSes, assuming we don't need anything
    
    7 19
     # special and the option '-C ""' is good enough.
    
    8 20
     .build_cmucl:
    
    ... ... @@ -19,6 +31,7 @@ variables:
    19 31
         # string, an alternative can be provided with the -V flag
    
    20 32
         - bin/make-dist.sh -I dist build-4
    
    21 33
     
    
    34
    +
    
    22 35
     # Default build configuration to be added to each build stage for each
    
    23 36
     # OS.
    
    24 37
     .build_template: &build_configuration
    
    ... ... @@ -84,17 +97,11 @@ cache:
    84 97
     
    
    85 98
     
    
    86 99
     linux:install:
    
    87
    -  stage: install
    
    100
    +  <<: *install_configuration
    
    88 101
       tags:
    
    89 102
         - linux
    
    90
    -  artifacts:
    
    91
    -    paths:
    
    92
    -      - snapshot/
    
    93
    -  script:
    
    94
    -    - wget -nv $download_url/cmucl-$version-linux.tar.bz2
    
    95
    -    - wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
    
    96
    -    - mkdir snapshot
    
    97
    -    - (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
    
    103
    +  variables:
    
    104
    +    osname: "linux"
    
    98 105
     
    
    99 106
     linux:build:
    
    100 107
       <<: *build_configuration