Skip to content

Commit 3ffbec4

Browse files
committed
Upgrade GCC builds to 12
Also add a new GCC12 + OpenMPI4 build. Because we have it named including the compiler version and it's marked as required I can't just delete it, so add the new one. Reduce the specificity of the versioning to make this easier (e.g. per-major-version) in the future. Signed-off-by: Samuel E. Browne <[email protected]>
1 parent 07ac251 commit 3ffbec4

File tree

2 files changed

+102
-3
lines changed

2 files changed

+102
-3
lines changed

.github/workflows/AT2.yml

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,105 @@ jobs:
131131
if: ${{ !cancelled() }}
132132
uses: ./.github/workflows/actions/summary
133133

134+
gcc12-openmpi4:
135+
needs: pre-checks
136+
runs-on: [self-hosted, gcc-12.3.0-openmpi-4.1.6, 20251023]
137+
if: ${{ needs.pre-checks.outputs.should_skip != 'true' && (github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED') }}
138+
steps:
139+
- name: env
140+
env:
141+
GITHUB_CONTEXT: ${{ toJson(github) }}
142+
run: |
143+
env
144+
- name: module list
145+
shell: bash
146+
run: |
147+
bash -l -c "module list"
148+
printenv PATH
149+
- name: Cancel Previous Runs
150+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
151+
with:
152+
access_token: ${{ github.token }}
153+
- name: make dirs
154+
working-directory: /
155+
run: |
156+
mkdir -p /home/Trilinos/src/Trilinos
157+
mkdir -p /home/Trilinos/build
158+
- name: Clone trilinos
159+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
160+
with:
161+
fetch-depth: 0
162+
- name: Repo status
163+
run: |
164+
git fetch --all
165+
pwd
166+
ls -lhat
167+
git status
168+
git branch -vv
169+
git branch -a
170+
- name: Output ccache stats
171+
run: |
172+
bash -l -c "ccache --show-stats --verbose"
173+
- name: get dependencies
174+
working-directory: ./packages/framework
175+
run: |
176+
bash -l -c "./get_dependencies.sh"
177+
- name: PullRequestLinuxDriverTest.py
178+
shell: bash -l {0}
179+
working-directory: /home/Trilinos/build
180+
run: |
181+
# Set up python-is-python3 hackery
182+
mkdir bin
183+
pushd bin
184+
ln -s $(type -p python3) python
185+
export PATH=$(pwd):${PATH}
186+
popd
187+
188+
export TRILINOS_DIR=${GITHUB_WORKSPACE:?}
189+
export PYTHONPATH=${PYTHONPATH}:${TRILINOS_DIR}/packages/framework/GenConfig
190+
export PYTHONPATH=${PYTHONPATH}:${TRILINOS_DIR}/packages/framework/pr_tools
191+
export GENCONFIG_BUILD_NAME=rhel8_gcc-openmpi_debug_shared_no-kokkos-arch_no-asan_complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
192+
printf "\n\n\n"
193+
194+
echo "image: ${AT2_IMAGE_FULLPATH:-${AT2_IMAGE:-unknown}}"
195+
196+
python3 ${GITHUB_WORKSPACE}/packages/framework/pr_tools/PullRequestLinuxDriverTest.py \
197+
--target-branch-name ${{ github.event.pull_request.base.ref }} \
198+
--genconfig-build-name ${GENCONFIG_BUILD_NAME} \
199+
--pullrequest-number ${{ github.event.pull_request.number }} \
200+
--pullrequest-env-config-file ${GITHUB_WORKSPACE}/packages/framework/pr_tools/trilinos_pr.ini \
201+
--pullrequest-gen-config-file ${GITHUB_WORKSPACE}/packages/framework/GenConfig/src/gen-config.ini \
202+
--workspace-dir /home/runner/_work/Trilinos \
203+
--source-dir ${GITHUB_WORKSPACE} \
204+
--build-dir /home/Trilinos/build \
205+
--dashboard-build-name=PR-${{ github.event.pull_request.number }}_${AT2_IMAGE}_debug_shared \
206+
--ctest-driver /home/runner/_work/Trilinos/Trilinos/cmake/SimpleTesting/cmake/ctest-driver.cmake \
207+
--ctest-drop-site sems-cdash-son.sandia.gov/cdash \
208+
--filename-subprojects ./package_subproject_list.cmake \
209+
--filename-packageenables ./packageEnables.cmake \
210+
--max-cores-allowed=29 \
211+
--num-concurrent-tests=16
212+
- name: Copy artifacts
213+
if: success() || failure()
214+
shell: bash -l {0}
215+
working-directory: /home/Trilinos/build
216+
run: |
217+
cp ./packageEnables.cmake /home/runner/artifacts/
218+
cp ./configure_command.txt /home/runner/artifacts/
219+
cp ./genconfig_build_name.txt /home/runner/artifacts/
220+
- name: Upload artifacts
221+
if: success() || failure()
222+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
223+
env:
224+
NODE_TLS_REJECT_UNAUTHORIZED: 0
225+
with:
226+
name: ${{ github.job }}-artifacts
227+
path: /home/runner/artifacts/*
228+
retention-days: 90
229+
- name: Write Summary
230+
if: ${{ !cancelled() }}
231+
uses: ./.github/workflows/actions/summary
232+
134233
clang19-openmpi4:
135234
needs: pre-checks
136235
runs-on: [self-hosted, clang-19.1.6-openmpi-4.1.6, 20250723]
@@ -625,7 +724,7 @@ jobs:
625724

626725
openmp:
627726
needs: pre-checks
628-
runs-on: [self-hosted, gcc-10.4.0-openmpi-4.1.6, 20251023]
727+
runs-on: [self-hosted, gcc-12.3.0-openmpi-4.1.6, 20251023]
629728
if: ${{ needs.pre-checks.outputs.should_skip != 'true' && (github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED') }}
630729
steps:
631730
- name: env

.github/workflows/spack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ permissions:
1515
contents: read
1616

1717
jobs:
18-
gcc10-openmpi416:
18+
develop-gcc-openmpi:
1919
permissions:
2020
contents: read # for actions/checkout to fetch code
21-
runs-on: [self-hosted, gcc-10.4.0_openmpi-4.1.6]
21+
runs-on: [self-hosted, gcc-12.3.0_openmpi-4.1.6]
2222
steps:
2323
- name: Clone Trilinos
2424
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)