-
Notifications
You must be signed in to change notification settings - Fork 572
135 lines (130 loc) · 4.82 KB
/
AT2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: AT2-EXPERIMENTAL
on:
pull_request:
types:
- opened
- synchronize
pull_request_review:
types:
- submitted
branches:
- master
- develop
workflow_dispatch:
permissions:
contents: read
jobs:
gcc10-openmpi416-EXPERIMENTAL:
runs-on: [self-hosted, gcc-10.3.0_openmpi-4.1.6]
if: ${{ github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED' }}
steps:
- name: env
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
env
- name: module list
shell: bash
run: |
bash -l -c "module list"
printenv PATH
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: make dirs
working-directory: /
run: |
mkdir -p /home/Trilinos/src/Trilinos
mkdir -p /home/Trilinos/build
- name: Clone trilinos
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Repo status
run: |
git fetch --all
pwd
ls -lhat
git status
git branch -vv
git branch -a
- name: get dependencies
working-directory: ./packages/framework
run: |
bash -l -c "./get_dependencies.sh --container"
- name: Generate PR cmake fragment
working-directory: /home/Trilinos/build
run: |
bash -l -c "source ${GITHUB_WORKSPACE}/packages/framework/GenConfig/gen-config.sh 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 --force --cmake-fragment PR-configuration.cmake ${GITHUB_WORKSPACE}"
- name: Generate enable packages cmake fragment
working-directory: /home/Trilinos/build
run: |
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"
- name: configure trilinos
working-directory: /home/Trilinos/build
run: |
bash -l -c "cmake -C PR-configuration.cmake -C package-enables.cmake ${GITHUB_WORKSPACE}"
- name: build trilinos
working-directory: /home/Trilinos/build
run: bash -l -c "ninja -j16"
- name: ctest
working-directory: /home/Trilinos/build
run: bash -l -c "ctest -j16"
gcc830-serial-EXPERIMENTAL:
runs-on: [self-hosted, gcc-8.3.0_serial]
if: ${{ github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED' }}
steps:
- name: env
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
env
- name: module list
shell: bash
run: |
bash -l -c "module list"
printenv PATH
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: make dirs
working-directory: /
run: |
mkdir -p /home/Trilinos/src/Trilinos
mkdir -p /home/Trilinos/build
- name: Clone trilinos
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Repo status
run: |
git fetch --all
pwd
ls -lhat
git status
git branch -vv
git branch -a
- name: get dependencies
working-directory: ./packages/framework
run: |
bash -l -c "./get_dependencies.sh --container"
- name: Generate PR cmake fragment
working-directory: /home/Trilinos/build
run: |
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}"
- name: Generate enable packages cmake fragment
working-directory: /home/Trilinos/build
run: |
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"
- name: configure trilinos
working-directory: /home/Trilinos/build
run: |
bash -l -c "cmake -C PR-configuration.cmake -C package-enables.cmake ${GITHUB_WORKSPACE}"
- name: build trilinos
working-directory: /home/Trilinos/build
run: bash -l -c "ninja -j16"
- name: ctest
working-directory: /home/Trilinos/build
run: bash -l -c "ctest -j16"