Skip to content

Commit

Permalink
Merge pull request #45 from CExA-project/feature/fix-ci
Browse files Browse the repository at this point in the history
Fix missing points in CI
  • Loading branch information
yasahi-hpc authored Feb 9, 2024
2 parents 03f8a3a + e555961 commit 2dfd5c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/cleanup_base.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Clean old Docker and Singularity images that are too old periodically.
# Clean old Docker and Singularity images that are too old periodically or
# manually.

name: Cleanup base images

on:
schedule:
- cron: "0 3 2,16 * *" # every 2nd and 16th of the month at 3am UTC
workflow_dispatch:

jobs:
cleanup:
Expand All @@ -16,13 +18,13 @@ jobs:
with:
type: container
names: |
base_cuda_main
base_cuda_pr
base_cuda_singularity_main
base_cuda_singularity_pr
base_hip_main
base_hip_pr
base_openmp_main
base_openmp_pr
base_sycl_main
base_sycl_pr
base_nvcc_main
base_nvcc_pr
base_nvcc_singularity_main
base_nvcc_singularity_pr
base_rocm_main
base_rocm_pr
base_gcc_main
base_gcc_pr
base_intel_main
base_intel_pr
13 changes: 7 additions & 6 deletions .github/workflows/pre_build_base.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Recreate the base images inconditionnaly on a regural basis and on push on
# the main branch. This is to ensure that anybody using the Docker files for
# local development does not encounter weird bugs unnoticed by the CI, because
# the images would be too old.
# Recreate the base images inconditionnaly on periodically or manually and on
# push on the main branch. This is to ensure that anybody using the Docker
# files for local development does not encounter weird bugs unnoticed by the
# CI, because the images would be too old.

name: Pre-build base images

Expand All @@ -11,6 +11,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
check_docker_files:
Expand All @@ -22,7 +23,7 @@ jobs:
build_base:
needs: check_docker_files

# run inconditionnaly on schedule mode or if Docker files changed on other modes
if: ${{ github.event_name == 'schedule' || needs.check_docker_files.outputs.docker_files_have_changed == 'true' }}
# run inconditionnaly on schedule or manual mode or if Docker files changed on other modes
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || needs.check_docker_files.outputs.docker_files_have_changed == 'true' }}

uses: ./.github/workflows/__build_base.yaml

0 comments on commit 2dfd5c3

Please sign in to comment.