From 9e62f2a8881395c4e1ddda692d2d2afdd69d8395 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 3 Jul 2023 15:00:30 -0500 Subject: [PATCH] github: do not run checks on drafts --- .github/workflows/docker.yml | 6 +++--- .github/workflows/linux.yml | 16 ++++++++++++++++ .github/workflows/osx.yml | 6 ++++++ .github/workflows/tidy.yml | 3 +++ .github/workflows/windows.yml | 5 +++++ 5 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e148047657..80851a9ed6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,7 +1,7 @@ name: github-docker -on: - push: +on: + push: branches: - 'docker*' - 'master' @@ -13,7 +13,7 @@ permissions: jobs: build-master-docker: runs-on: ubuntu-latest - steps: + steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8319201a11..9f06d7fe75 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -16,6 +16,9 @@ jobs: name: linux release serial runs-on: [ubuntu-20.04] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + steps: - uses: actions/checkout@v3 - name: setup @@ -65,6 +68,10 @@ jobs: name: linux debug parallel simplex runs-on: [ubuntu-22.04] + + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + container: image: dealii/dependencies:jammy options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 @@ -123,6 +130,9 @@ jobs: name: linux debug cuda-11 runs-on: [ubuntu-20.04] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + env: CUDA_ROOT: /usr/local/cuda @@ -203,6 +213,9 @@ jobs: name: linux debug cuda-11 clang runs-on: [ubuntu-20.04] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + env: CUDA_ROOT: /usr/local/cuda @@ -289,6 +302,9 @@ jobs: name: linux debug intel oneapi runs-on: [ubuntu-20.04] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + steps: - uses: actions/checkout@v3 - name: setup apt repo diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index b81f8cc2df..72e3264545 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -16,6 +16,9 @@ jobs: name: OSX serial runs-on: [macos-latest] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + steps: - uses: actions/checkout@v3 - name: info @@ -52,6 +55,9 @@ jobs: name: OSX parallel 64bit runs-on: [macos-latest] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + steps: - uses: actions/checkout@v3 - name: setup diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index e2bf74972f..90e7e7d446 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -11,6 +11,9 @@ jobs: name: tidy runs-on: [ubuntu-22.04] + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + steps: - uses: actions/checkout@v3 - name: modules diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index db44c7040d..466785326e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,8 +12,13 @@ permissions: jobs: windows-serial: # Serial build on Windows + # name: Windows Serial runs-on: ${{ matrix.os }} + + # only run on 'push' or if the 'pull_request' is not a draft: + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + strategy: fail-fast: false matrix: -- 2.39.5