From 748d56af7171a4aa249128cd2170b3dee87e5813 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 18 Dec 2024 10:34:42 -0700 Subject: [PATCH] ci: Add windows nightly against Kokkos develop --- .github/workflows/github-nightly-windows.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/github-nightly-windows.yaml diff --git a/.github/workflows/github-nightly-windows.yaml b/.github/workflows/github-nightly-windows.yaml new file mode 100644 index 00000000..5e56563d --- /dev/null +++ b/.github/workflows/github-nightly-windows.yaml @@ -0,0 +1,54 @@ +name: Nightly, Hosted Runners, Windows + +on: + schedule: + # 9:50 AM UTC (~2:50 AM Mountain), Monday-Friday + - cron: "50 9 * * 1-5" + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + cpp_compiler: cl + build_type: Release + backend: SERIAL + + steps: + - name: Checkout Kokkos Tutorials + uses: actions/checkout@v4 + with: + path: kokkos-tutorials + + - name: Checkout Kokkos + uses: actions/checkout@v4 + with: + repository: 'kokkos/kokkos' + ref: develop + path: kokkos + + - name: Configure Kokkos + run: > + cmake -S ${{ github.workspace}}\kokkos -B ${{ github.workspace}}\build-kokkos + -DCMAKE_INSTALL_PREFIX=${{ github.workspace}}\install-kokkos + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + + - name: Build & Install Kokkos + run: cmake --build ${{ github.workspace}}\build-kokkos --config ${{ matrix.build_type }} --parallel 2 --target install + + - name: Configure and Build Exercises + run: | + ${{ github.workspace}}\kokkos-tutorials\Scripts\ci-configure-build-test.bat ^ + ${{ github.workspace}}\install-kokkos\lib\cmake\Kokkos ^ + ${{ github.workspace}}\kokkos-tutorials ^ + ${{ matrix.cpp_compiler}} ^ + ${{ matrix.build_type}} ^ + ${{ matrix.backend }} + shell: cmd +