From a08d174465527b2a58e6fc2856a71503a0321770 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Mon, 6 Nov 2023 08:44:58 -0800 Subject: [PATCH] CI: Update actions (#368) * Cancel existing workflow on new push * Add dispatch trigger for all actions * Upload all outputs from testing directory --------- Co-authored-by: Cody Balos --- .github/workflows/double-precision.yml | 12 +++++++++--- .github/workflows/extended-precision.yml | 12 +++++++++--- .github/workflows/macos-latest.yml | 6 ++++++ .github/workflows/single-precision.yml | 12 +++++++++--- .github/workflows/spack-develop.yml | 11 ++++++++--- .github/workflows/ubuntu-clang-latest.yml | 6 ++++++ .github/workflows/windows-latest-mingw.yml | 6 ++++++ .github/workflows/windows-latest.yml | 6 ++++++ 8 files changed, 59 insertions(+), 12 deletions(-) diff --git a/.github/workflows/double-precision.yml b/.github/workflows/double-precision.yml index 9303af7523..31feaf3ffb 100644 --- a/.github/workflows/double-precision.yml +++ b/.github/workflows/double-precision.yml @@ -4,6 +4,12 @@ name: double precision build and test with GCC+TPLs (no GPUs) on: push: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build_and_test: @@ -26,7 +32,7 @@ jobs: indexsize: ${{ matrix.indexsize }} precision: ${{ matrix.precision }} - name: Archive build files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: build_files @@ -34,9 +40,9 @@ jobs: ${{ github.workspace }}/test/build_* !${{ github.workspace }}/test/build_*/Testing/output - name: Archive output files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: output_files path: | - ${{ github.workspace }}/test/build_*/Testing/output + ${{ github.workspace }}/test/build_*/Testing/ diff --git a/.github/workflows/extended-precision.yml b/.github/workflows/extended-precision.yml index dc6f32e726..55d75f7d5d 100644 --- a/.github/workflows/extended-precision.yml +++ b/.github/workflows/extended-precision.yml @@ -3,6 +3,12 @@ name: extended precision build and test with GCC+TPLs (no GPUs) on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build_and_test: @@ -25,7 +31,7 @@ jobs: indexsize: ${{ matrix.indexsize }} precision: ${{ matrix.precision }} - name: Archive build files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: build_files @@ -33,9 +39,9 @@ jobs: ${{ github.workspace }}/test/build_* !${{ github.workspace }}/test/build_*/Testing/output - name: Archive output files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: output_files path: | - ${{ github.workspace }}/test/build_*/Testing/output + ${{ github.workspace }}/test/build_*/Testing/ diff --git a/.github/workflows/macos-latest.yml b/.github/workflows/macos-latest.yml index 9efb20d976..4d5599295e 100644 --- a/.github/workflows/macos-latest.yml +++ b/.github/workflows/macos-latest.yml @@ -2,6 +2,12 @@ name: MacOS short test on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/single-precision.yml b/.github/workflows/single-precision.yml index 304ae4e3bc..9a87e7f0bd 100644 --- a/.github/workflows/single-precision.yml +++ b/.github/workflows/single-precision.yml @@ -3,6 +3,12 @@ name: single precision build and test with GCC+TPLs (no GPUs) on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build_and_test: @@ -25,7 +31,7 @@ jobs: indexsize: ${{ matrix.indexsize }} precision: ${{ matrix.precision }} - name: Archive build files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: build_files @@ -33,9 +39,9 @@ jobs: ${{ github.workspace }}/test/build_* !${{ github.workspace }}/test/build_*/Testing/output - name: Archive output files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: output_files path: | - ${{ github.workspace }}/test/build_*/Testing/output + ${{ github.workspace }}/test/build_*/Testing/ diff --git a/.github/workflows/spack-develop.yml b/.github/workflows/spack-develop.yml index 07dce581c2..745a57df7e 100644 --- a/.github/workflows/spack-develop.yml +++ b/.github/workflows/spack-develop.yml @@ -3,10 +3,15 @@ name: spack@develop build and test with GCC+TPLs (no GPUs) on: pull_request: + merge_group: workflow_dispatch: schedule: - cron: '00 22 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build_and_test: runs-on: ubuntu-latest @@ -28,7 +33,7 @@ jobs: indexsize: ${{ matrix.indexsize }} precision: ${{ matrix.precision }} - name: Archive build files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: build_files @@ -36,9 +41,9 @@ jobs: ${{ github.workspace }}/test/build_* !${{ github.workspace }}/test/build_*/Testing/output - name: Archive output files from failed build - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 if: failure() with: name: output_files path: | - ${{ github.workspace }}/test/build_*/Testing/output + ${{ github.workspace }}/test/build_*/Testing/ diff --git a/.github/workflows/ubuntu-clang-latest.yml b/.github/workflows/ubuntu-clang-latest.yml index 29da08a417..71f398d30a 100644 --- a/.github/workflows/ubuntu-clang-latest.yml +++ b/.github/workflows/ubuntu-clang-latest.yml @@ -2,6 +2,12 @@ name: Ubuntu (clang) short test on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/windows-latest-mingw.yml b/.github/workflows/windows-latest-mingw.yml index ab20ea721a..5289a953da 100644 --- a/.github/workflows/windows-latest-mingw.yml +++ b/.github/workflows/windows-latest-mingw.yml @@ -2,6 +2,12 @@ name: Windows (mingw) short test on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/windows-latest.yml b/.github/workflows/windows-latest.yml index d640eb6bd2..66489fe976 100644 --- a/.github/workflows/windows-latest.yml +++ b/.github/workflows/windows-latest.yml @@ -2,6 +2,12 @@ name: Windows short test on: pull_request: + merge_group: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)