Skip to content

Commit

Permalink
Use new GitLab-CI API
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Feb 24, 2025
1 parent 7ccf207 commit 9b723ce
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ stages:
- result

.global_job_template: &global_job_definition
except:
- staging.tmp
- trying.tmp
before_script:
- git config --global --add safe.directory ${CI_PROJECT_DIR}
timeout: 1h
interruptible: true
rules:
- if: '$CI_COMMIT_REF_NAME != "staging.tmp" && $CI_COMMIT_REF_NAME != "trying.tmp"'

.notification_job_template: &notification_job_definition
<<: *global_job_definition
Expand Down Expand Up @@ -315,8 +314,8 @@ tutorials-samples-default:
- cuda
- numa
- avx2
only:
- schedules
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"

tutorials-samples-empty:
<<: *global_job_definition
Expand All @@ -342,8 +341,8 @@ tutorials-samples-empty:
- espresso
- cuda
- numa
only:
- schedules
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"

tutorials-samples-no-gpu:
<<: *global_job_definition
Expand Down Expand Up @@ -371,8 +370,8 @@ tutorials-samples-no-gpu:
- espresso
- no-cuda
- avx2
only:
- schedules
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"

installation:
<<: *global_job_definition
Expand Down Expand Up @@ -437,7 +436,6 @@ check_sphinx:
needs:
- job: cuda12-maxset
artifacts: true
when: on_success
script:
- cd ${CI_PROJECT_DIR}/build
- make -t && make sphinx
Expand All @@ -461,7 +459,6 @@ run_tutorials:
needs:
- job: cuda12-maxset
artifacts: true
when: on_success
script:
- cd ${CI_PROJECT_DIR}/build
- make -t
Expand All @@ -481,18 +478,15 @@ run_tutorials:
- cuda
- numa
- reuse-artifacts-same-arch
only:
- schedules
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"

run_doxygen:
<<: *global_job_definition
stage: additional_checks
needs:
- job: cuda12-maxset
artifacts: true
when: on_success
only:
- python
script:
- cd ${CI_PROJECT_DIR}/build
- make -t && make doxygen
Expand All @@ -505,11 +499,12 @@ run_doxygen:
- no-cuda
- numa
- reuse-artifacts-same-arch
rules:
- if: $CI_PIPELINE_SOURCE == "python"

maxset_no_gpu:
<<: *global_job_definition
stage: additional_checks
when: on_success
needs:
- job: cuda12-maxset
artifacts: true
Expand All @@ -526,7 +521,6 @@ maxset_no_gpu:
maxset_3_cores:
<<: *global_job_definition
stage: additional_checks
when: on_success
needs:
- job: cuda12-maxset
artifacts: false
Expand Down Expand Up @@ -572,14 +566,14 @@ notify_success:
<<: *notification_job_definition
stage: result
script: sh maintainer/gh_close_issue.sh
when: on_success
only:
- python
rules:
- if: $CI_PIPELINE_SOURCE == "python"
when: on_success

notify_failure:
<<: *notification_job_definition
stage: result
script: sh maintainer/gh_create_issue.sh
when: on_failure
only:
- python
rules:
- if: $CI_PIPELINE_SOURCE == "python"
when: on_failure

0 comments on commit 9b723ce

Please sign in to comment.