Skip to content

Commit

Permalink
Merge pull request #169 from arcaneframework/dev/ah-ci-update-image
Browse files Browse the repository at this point in the history
Update image used by CIs and update GH Actions used
  • Loading branch information
AlexlHer authored Oct 9, 2024
2 parents 3177ef2 + 11d7172 commit 1b72ec2
Show file tree
Hide file tree
Showing 13 changed files with 135 additions and 91 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/acoustics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'acoustics'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/aerodynamics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'aerodynamics'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/bilaplacian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'bilaplacian'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/elasticity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'elasticity'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/elastodynamics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'elastodynamics'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/electrostatics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'electrostatics'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/fourier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'fourier'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/heat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
workflow_dispatch:

env:

SOURCE_DIR: '/__w/arcanefem/arcanefem/src'
BUILD_DIR: '/__w/arcanefem/arcanefem/build'
MODULE_DIR: 'heat'

# CTest
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test'
CT_OPTS: "--timeout 300 --output-on-failure"

# MPI
Expand All @@ -31,11 +27,18 @@ jobs:
name: 'Build and Test'
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest
image: ghcr.io/arcaneframework/arcane_ubuntu-2404:gcc-14_full_check_latest

steps:
- name: Define environment paths
shell: bash
run: |
echo "SOURCE_DIR=${GITHUB_WORKSPACE}/src" >> $GITHUB_ENV
echo "BUILD_DIR=${GITHUB_WORKSPACE}/build" >> $GITHUB_ENV
echo "CT_RESULT_DIR=${GITHUB_WORKSPACE}/test" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{ env.SOURCE_DIR }}

Expand All @@ -59,7 +62,7 @@ jobs:
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]'
- name: Upload test artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-${{ env.MODULE_DIR }}-artifact
Expand Down
Loading

0 comments on commit 1b72ec2

Please sign in to comment.