Skip to content
Snippets Groups Projects
Commit c205c257 authored by ewbo4360's avatar ewbo4360 :sunflower:
Browse files

Pipeline updated to build and publish artifacts to GitLab that remain...

Pipeline updated to build and publish artifacts to GitLab that remain accessible for 5min to any user on the root/artifacts directory, matrix usage for multiplatforms build will be possible eventually in further versions
parent fd82b881
No related branches found
No related tags found
No related merge requests found
Pipeline #74508 passed
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
# ... builds an artifact - see stage: build in .gitlab-ci.yml # ... builds an artifact - see stage: build in .gitlab-ci.yml
# check # check
# ... publishes the artifact(s) - see stage: publish in .gitlab-ci.yml # ... publishes the artifact(s) - see stage: publish in .gitlab-ci.yml
# (even if the pipeline jobs are already accessible on gitlab.com with the adequate access rights) # (even if the pipeline jobs are already accessible on gitlab.com with the adequate access rights)
# i tried to upload it as did in lectures but the articacts seems too large according to gilab runners
# i'll try later to make it possible
# check # check
stages: stages:
...@@ -73,10 +74,10 @@ ...@@ -73,10 +74,10 @@
- echo "Hello, $GITLAB_USER_LOGIN! This is a build job" - echo "Hello, $GITLAB_USER_LOGIN! This is a build job"
- mkdir -p ./artifacts - mkdir -p ./artifacts
- meson compile -C output/full --verbose - meson compile -C output/full --verbose
- cd ./artifacts; ls; cd ..
artifacts: # artifacts:
paths: # paths:
- output/full # Publish the built artifacts # - output/full # Publish the built artifacts
cache: cache:
paths: paths:
- output/full #save cache for later jobs - output/full #save cache for later jobs
...@@ -112,7 +113,7 @@ ...@@ -112,7 +113,7 @@
script: script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch." - echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
- echo "Publishing the artifact..." - echo "Publishing the artifact..."
- cp -r output/full ./artifacts # Ensure the artifacts are included for deployment # - cp -r output/full ./artifacts # Ensure the artifacts are included for deployment
environment: production environment: production
cache: cache:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment