
Raymond Toy pushed to branch issue-389-reduce-duplication-in-ci-rules at cmucl / cmucl Commits: d112e61c by Raymond Toy at 2025-02-26T05:30:40-08:00 Abstract out the common bits of the install job All of the install jobs are basically the same except for the name of the tarball that we want to download. Move this to a template and add a variable to select the name of the OS to use for the tarball name. Implement just for linux:install for now, for testing. - - - - - 1 changed file: - .gitlab-ci.yml Changes: ===================================== .gitlab-ci.yml ===================================== @@ -3,6 +3,18 @@ variables: version: "2024-08-x86" bootstrap: "-B boot-2024-08" +# Install configuration +.install_template: &install_configuration + stage: install + artifacts: + paths: + - snapshot/ + script: + - wget -nv $download_url/cmucl-$version-$osname.tar.bz2 + - wget -nv $download_url/cmucl-$version-$osname.extra.tar.bz2 + - mkdir snapshot + - (cd snapshot; tar xjf ../cmucl-$version-$osname.tar.bz2; tar xjf ../cmucl-$version-$osname.extra.tar.bz2) + # Rule to build cmucl for all OSes, assuming we don't need anything # special and the option '-C ""' is good enough. .build_cmucl: @@ -19,6 +31,7 @@ variables: # string, an alternative can be provided with the -V flag - bin/make-dist.sh -I dist build-4 + # Default build configuration to be added to each build stage for each # OS. .build_template: &build_configuration @@ -84,17 +97,11 @@ cache: linux:install: - stage: install + <<: *install_configuration tags: - linux - artifacts: - paths: - - snapshot/ - script: - - wget -nv $download_url/cmucl-$version-linux.tar.bz2 - - wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2 - - mkdir snapshot - - (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2) + variables: + osname: "linux" linux:build: <<: *build_configuration View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/d112e61cd73f66db980e2f3f... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/d112e61cd73f66db980e2f3f... You're receiving this email because of your account on gitlab.common-lisp.net.