Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workflow for PRs only and required to merge PRs #2004

Merged
merged 2 commits into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build_tests_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
- { version: { short: 'M' }, image: { short: 'U24_G13_CU126' } }
- { version: { short: 'M' }, image: { short: 'U24_C18_CU126' } }
- { version: { short: 'M' }, image: { short: 'U24_ACPP' } }
# Ce test est fait par build_tests_required.
- { image: { short: 'U24_C19' }, version: { short: 'M' }, config: { type: 'Check' }, mpi: { implementation: 'OMPI' } }


name: '[${{matrix.image.short}}_${{matrix.version.short}}]_${{matrix.mpi.implementation}}_${{matrix.config.type}}'
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/build_tests_required_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: '[Require PR] Build/Install/Test Arcane Framework (Ubuntu 24.04 / CLang 19 / Minimal)'

on:
pull_request:
branches: [ main, dev/cea ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
build-install-test:
strategy:
fail-fast: false
matrix:
image:
- short: 'U24_C19'
long: 'ubuntu-2404'
compilo_name: 'clang'
compilo_version: '19'
acc_compilo_name: ''
acc_compilo_version: ''
date: '20250120'
args: '-DARCCORE_CXX_STANDARD=23'
execute_tests: true

version:
- short: 'M'
long: 'minimal'
args: '-DARCANE_DISABLE_PERFCOUNTER_TESTS=ON'

config:
- type: 'Check'
excluded_tests: '^.*([3-9]proc|[1-9][0-9]+proc|[3-9]thread|[1-9][0-9]+thread).*$'
excluded_tests_with_labels: 'LARGE_HYBRID'
ctest_args: '-j4 --timeout 1200'

mpi:
- implementation: 'OMPI'

name: '[${{matrix.image.short}}_${{matrix.version.short}}]_${{matrix.mpi.implementation}}_${{matrix.config.type}}'
# La partie 'uses' est déterminée à la compilation, donc on ne peut pas mettre de variable ${{}}.
uses: 'arcaneframework/gh_actions/.github/workflows/reusable_test_framework.yml@v3'
with:
image: ghcr.io/arcaneframework/${{matrix.image.long}}:${{matrix.image.compilo_name}}-${{matrix.image.compilo_version}}_${{matrix.version.long}}_${{matrix.image.date}}
compilo_name: ${{ matrix.image.compilo_name }}
compilo_version: ${{ matrix.image.compilo_version }}
acc_compilo_name: ${{ matrix.image.acc_compilo_name }}
acc_compilo_version: ${{ matrix.image.acc_compilo_version }}
mpi: ${{ matrix.mpi.implementation }}
type_build: ${{ matrix.config.type }}
cmake_additionnal_args: '${{ matrix.image.args }} ${{ matrix.version.args }}'
verbose: true
ccache_debug_mode: false
with_samples: true
execute_tests: ${{ matrix.image.execute_tests }}
excluded_tests: ${{ matrix.config.excluded_tests }}
excluded_tests_with_labels: ${{ matrix.config.excluded_tests_with_labels }}
ctest_additionnal_args: ${{ matrix.config.ctest_args }}
cache_key_prefix: ${{matrix.image.short}}_${{matrix.version.short}}
artifact_key_prefix: ${{matrix.image.short}}_${{matrix.version.short}}_${{matrix.mpi.implementation}}_${{matrix.config.type}}