diff --git a/.github/workflows/PrTests.yml b/.github/workflows/PrTests.yml new file mode 100644 index 000000000000..1aa7655bf76c --- /dev/null +++ b/.github/workflows/PrTests.yml @@ -0,0 +1,73 @@ +name: pr-test-AT2 + +on: + pull_request: + types: + - opened + - synchronize + pull_request_review: + types: + - submitted + branches: + - master + - develop + workflow_dispatch: + +jobs: + triloamd01-gcc: + runs-on: [self-hosted, triloamd01] + 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/cancel-workflow-action@0.11.0 + 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/checkout@v4 + 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" + - name: ctest + working-directory: /home/Trilinos/build + run: bash -l -c "ctest -j36" diff --git a/test.txt b/test.txt new file mode 100644 index 000000000000..2f4e349d1dce --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +sdf diff --git a/test1.txt b/test1.txt new file mode 100644 index 000000000000..8ea4da0ab7ec --- /dev/null +++ b/test1.txt @@ -0,0 +1 @@ +x to doubt