forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First run a simple gcc, clang-format and codeql, only if those pass trigger the rest.
- Loading branch information
Showing
10 changed files
with
124 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: clang-format check | ||
|
||
on: [push, pull_request] | ||
on: | ||
workflow_call: | ||
|
||
permissions: read-all | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: basic-test | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}-cibasic | ||
cancel-in-progress: ${{github.event_name == 'pull_request'}} | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
gcc-serial-cpp17: | ||
name: gcc-openmp-cpp17 | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
path: kokkos | ||
|
||
- name: configure kokkos | ||
run: | | ||
mkdir -p kokkos/{build,install} | ||
cd kokkos/build | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_INSTALL_PREFIX=$PWD/../install \ | ||
-DCMAKE_CXX_COMPILER=clang++ \ | ||
-DCMAKE_CXX_FLAGS="-Werror" \ | ||
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \ | ||
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF \ | ||
-DKokkos_ENABLE_EXAMPLES=ON \ | ||
-DKokkos_ENABLE_SERIAL=ON \ | ||
-DKokkos_ENABLE_TESTS=ON \ | ||
.. | ||
- name: build_and_install_kokkos | ||
working-directory: kokkos/build | ||
run: make -j2 install | ||
|
||
- name: test_kokkos | ||
working-directory: kokkos/build | ||
run: ctest --timeout 2000 -j1 --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: staged-continuous-integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
types: [ opened, reopened, synchronize ] | ||
|
||
concurrency: | ||
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{github.event_name == 'pull_request'}} | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
# pre-stage | ||
clang-format-check: | ||
uses: ./.github/workflows/clang-format-check.yml | ||
|
||
codeql: | ||
# need to set manual permissions since it requires security-events write | ||
# but then we have to set everything else manually to read since the | ||
# default is overwritten | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
uses: ./.github/workflows/codeql.yml | ||
|
||
initial-check: | ||
uses: ./.github/workflows/continuous-integration-snifftest.yml | ||
|
||
# primary testing | ||
windows-cuda: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/continuous-integration-windows.yml | ||
|
||
standard-linux: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/continuous-integration-linux.yml | ||
|
||
hpx-linux: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/continuous-integration-linux-hpx.yml | ||
|
||
linux-32bit: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/continuous-integration-linux-32bit.yml | ||
|
||
osx: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/continuous-integration-osx.yml | ||
|
||
performance-test: | ||
needs: [initial-check, codeql, clang-format-check] | ||
uses: ./.github/workflows/performance-benchmark.yml |
5 changes: 2 additions & 3 deletions
5
.github/workflows/windows.yml → ...kflows/continuous-integration-windows.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters