File tree Expand file tree Collapse file tree 4 files changed +32
-179
lines changed
actions/update-to-kokkos-develop Expand file tree Collapse file tree 4 files changed +32
-179
lines changed Original file line number Diff line number Diff line change
1
+ # Composite action to update Kokkos to the current develop branch
2
+
3
+
Original file line number Diff line number Diff line change
1
+ name : Update Kokkos to develop branch
2
+ description : Updates to Kokkos develop branch and append necessary cmake vars
3
+
4
+ runs :
5
+ using : " composite"
6
+ steps :
7
+ - name : Check out develop branch in externals/ekat/extern/kokkos
8
+ run : |
9
+ cd externals/ekat/extern/kokkos
10
+ if ! git remote | grep -q upstream; then
11
+ git remote add upstream https://github.com/kokkos/kokkos.git
12
+ fi
13
+ git fetch upstream
14
+ git checkout upstream/develop
15
+ - name : Modify ghci-snl.cmake file
16
+ run : |
17
+ cmake_file="components/eamxx/cmake/machine-files/ghci-snl.cmake"
18
+ echo "set(CMAKE_CXX_STANDARD 20)" >> $cmake_file
19
+ echo "set(Kokkos_ENABLE_IMPL_VIEW_LEGACY ON)" >> $cmake_file
20
+ echo "set(Kokkos_ENABLE_DEPRECATED_CODE_4 ON)" >> $cmake_file
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 45
45
# Add schedule trigger for nightly runs at midnight MT (Standard Time)
46
46
schedule :
47
47
- cron : ' 0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time
48
+ - cron : ' 0 7 * * 1' # Weekly run every Monday at 7 AM UTC (using Kokkos develop branch)
48
49
49
50
concurrency :
50
51
# Two runs are in the same group if they are testing the same git ref
59
60
generate : ${{ github.event_name == 'workflow_dispatch' && inputs.bless }}
60
61
# Do EKAT testing for nightlies or (TODO: if EKAT label is present)
61
62
ekat : ${{ github.event_name == 'schedule' }}
63
+ # For the weekly run, we test using the kokkos develop branch
64
+ kokkos_dev_test : ${{ github.event_name == 'schedule' && github.event.schedule == '0 7 * * 1' }}
62
65
63
66
jobs :
64
67
gcc-openmp :
85
88
submodules : recursive
86
89
- name : Show action trigger
87
90
uses : ./.github/actions/show-workflow-trigger
91
+ - name : Checkout Kokkos develop branch
92
+ if : ${{ env.kokkos_dev_test }}
93
+ uses : ./.github/actions/update-to-kokkos-develop
88
94
- name : Run tests
89
95
uses : ./.github/actions/test-all-eamxx
90
96
with :
@@ -153,6 +159,9 @@ jobs:
153
159
exit 1
154
160
;;
155
161
esac
162
+ - name : Checkout Kokkos develop branch
163
+ if : ${{ env.kokkos_dev_test }}
164
+ uses : ./.github/actions/update-to-kokkos-develop
156
165
- name : Run tests
157
166
uses : ./.github/actions/test-all-eamxx
158
167
with :
You can’t perform that action at this time.
0 commit comments