[Git][ghc/ghc][wip/ghcup-metadata-nightly] ghcup metadata

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Apr 20 15:00:42 UTC 2023



Matthew Pickering pushed to branch wip/ghcup-metadata-nightly at Glasgow Haskell Compiler / GHC


Commits:
3e1fa4dc by GHC GitLab CI at 2023-04-20T15:59:19+01:00
ghcup metadata

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -999,7 +999,7 @@ project-version:
     - . ./version.sh
 
     # Download existing ghcup metadata
-    - nix shell --extra-experimental-features nix-command --extra-experimental-features flakes nixpkgs#wget -c wget "https://raw.githubusercontent.com/haskell/ghcup-metadata/develop/ghcup-0.0.7.yaml"
+    - nix shell --extra-experimental-features nix-command --extra-experimental-features flakes nixpkgs#wget -c wget "https://gitlab.haskell.org/ghc/ghcup-metadata/-/raw/main/ghcup-0.0.7.yaml"
 
     - .gitlab/generate_job_metadata
 
@@ -1012,42 +1012,72 @@ ghcup-metadata-nightly:
   extends: .ghcup-metadata
   # Explicit needs for validate pipeline because we only need certain bindists
   needs:
-    - job: nightly-x86_64-linux-fedora33-release
-      artifacts: false
-    - job: nightly-x86_64-linux-centos7-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-ubuntu20_04-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-ubuntu18_04-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-rocky8-validate
-      artifacts: false
-    - job: nightly-x86_64-darwin-validate
-      artifacts: false
-    - job: nightly-aarch64-darwin-validate
-      artifacts: false
-    - job: nightly-x86_64-windows-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-alpine3_12-int_native-validate+fully_static
-      artifacts: false
-    - job: nightly-x86_64-linux-deb9-validate
-      artifacts: false
-    - job: nightly-i386-linux-deb9-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-deb10-validate
-      artifacts: false
-    - job: nightly-aarch64-linux-deb10-validate
-      artifacts: false
-    - job: nightly-x86_64-linux-deb11-validate
-      artifacts: false
-    - job: source-tarball
-      artifacts: false
+    #    - job: nightly-x86_64-linux-fedora33-release
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-centos7-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-ubuntu20_04-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-ubuntu18_04-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-rocky8-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-darwin-validate
+    #      artifacts: false
+    #    - job: nightly-aarch64-darwin-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-windows-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-alpine3_12-int_native-validate+fully_static
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-deb9-validate
+    #      artifacts: false
+    #    - job: nightly-i386-linux-deb9-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-deb10-validate
+    #      artifacts: false
+    #    - job: nightly-aarch64-linux-deb10-validate
+    #      artifacts: false
+    #    - job: nightly-x86_64-linux-deb11-validate
+    #      artifacts: false
+    #    - job: source-tarball
+    #      artifacts: false
     - job: project-version
   script:
-    - nix shell --extra-experimental-features nix-command -f .gitlab/rel_eng -c ghcup-metadata --metadata ghcup-0.0.7.yaml --pipeline-id="$CI_PIPELINE_ID" --version="$ProjectVersion" > "metadata_test.yaml"
+    #    - nix shell --extra-experimental-features nix-command -f .gitlab/rel_eng -c ghcup-metadata --metadata ghcup-0.0.7.yaml --pipeline-id="$CI_PIPELINE_ID" --version="$ProjectVersion" > "metadata_test.yaml"
+    - cp ghcup-0.0.7.yaml metadata_test.yaml
   rules:
     - if: $NIGHTLY
 
+# Update the
+ghcup-metadata-nightly-push:
+  stage: deploy
+  image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora33:$DOCKER_REV"
+  dependencies: null
+  tags:
+    - x86_64-linux
+  variables:
+    BUILD_FLAVOUR: default
+    GIT_SUBMODULE_STRATEGY: "none"
+  needs:
+    - job: ghcup-metadata-nightly
+      artifacts: true
+  script:
+    - git config user.email "ghc-ci at gitlab-haskell.org"
+    - git config user.name "GHC GitLab CI"
+    - git clone git at gitlab.haskell.org:ghc/ghcup-metadata.git
+    - cp metadata_test.yaml ghcup-metadata/ghcup-0.0.7.yaml
+    - cd ghcup-metadata
+    - echo "" >> ghcup-0.0.7.yaml
+    - git remote add gitlab_origin https://oauth2:$PROJECT_PUSH_TOKEN@gitlab.haskell.org/ghc/ghcup-metadata.git
+    - git add .
+    - git commit -m "Update metadata"
+    - git push gitlab_origin HEAD:main -o ci.skip
+  rules:
+    - if: $NIGHTLY
+      #    - if: $CI_PIPELINE_SOURCE == "schedule"
+
+
 ghcup-metadata-release:
   # No explicit needs for release pipeline as we assume we need everything and everything will pass.
   extends: .ghcup-metadata



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e1fa4dc78878febd243f24d7a8b7ccf26bd1b65

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e1fa4dc78878febd243f24d7a8b7ccf26bd1b65
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230420/b5cf0128/attachment-0001.html>


More information about the ghc-commits mailing list