Skip to content

Commit 250cb8a

Browse files
committed
Add gcc-serial GitHub Actions job using AT2 platform
Add gcc-serial GitHub Actions job to the AT2 workflow file. This job will only run on GitHub Runners with the label `gcc-8.3.0_serial` specified which have an existing gcc-serial container environment ready for testing. TODO: lots of repeated lines with gcc-openmpi job, once Framework has more AT2 jobs added, we will look into condensing the lines using GitHub Composite Actions. Story ref: TRILFRAME-629
1 parent 042b0e1 commit 250cb8a

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/AT2.yml

+59
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,62 @@ jobs:
7474
- name: ctest
7575
working-directory: /home/Trilinos/build
7676
run: bash -l -c "ctest -j16"
77+
78+
gcc830-serial-EXPERIMENTAL:
79+
runs-on: [self-hosted, gcc-8.3.0_serial]
80+
if: ${{ github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED' }}
81+
steps:
82+
- name: env
83+
env:
84+
GITHUB_CONTEXT: ${{ toJson(github) }}
85+
run: |
86+
env
87+
- name: module list
88+
shell: bash
89+
run: |
90+
bash -l -c "module list"
91+
printenv PATH
92+
- name: Cancel Previous Runs
93+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
94+
with:
95+
access_token: ${{ github.token }}
96+
- name: make dirs
97+
working-directory: /
98+
run: |
99+
mkdir -p /home/Trilinos/src/Trilinos
100+
mkdir -p /home/Trilinos/build
101+
- name: Clone trilinos
102+
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
103+
with:
104+
fetch-depth: 0
105+
- name: Repo status
106+
run: |
107+
git fetch --all
108+
pwd
109+
ls -lhat
110+
git status
111+
git branch -vv
112+
git branch -a
113+
- name: get dependencies
114+
working-directory: ./packages/framework
115+
run: |
116+
bash -l -c "./get_dependencies.sh --container"
117+
- name: Generate PR cmake fragment
118+
working-directory: /home/Trilinos/build
119+
run: |
120+
bash -l -c "source ${GITHUB_WORKSPACE}/packages/framework/GenConfig/gen-config.sh rhel8_gcc-serial_release-debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables --force --cmake-fragment PR-configuration.cmake ${GITHUB_WORKSPACE}"
121+
- name: Generate enable packages cmake fragment
122+
working-directory: /home/Trilinos/build
123+
run: |
124+
bash -l -c "TRILINOS_DIR=${GITHUB_WORKSPACE} ${GITHUB_WORKSPACE}/commonTools/framework/get-changed-trilinos-packages.sh HEAD origin/develop package-enables.cmake ctest-labels.cmake" || bash -l -c "cat TribitsDumpDepsXmlScript.log"
125+
- name: configure trilinos
126+
working-directory: /home/Trilinos/build
127+
run: |
128+
bash -l -c "cmake -C PR-configuration.cmake -C package-enables.cmake ${GITHUB_WORKSPACE}"
129+
- name: build trilinos
130+
working-directory: /home/Trilinos/build
131+
run: bash -l -c "ninja -j16"
132+
- name: ctest
133+
working-directory: /home/Trilinos/build
134+
run: bash -l -c "ctest -j16"
135+

0 commit comments

Comments
 (0)