Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1763 build only ready prs #1785

Merged
merged 13 commits into from
Jul 8, 2022
2 changes: 1 addition & 1 deletion .github/workflows/comment-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
repository_dispatch:
types: comment-pr

concurrency: ${{ github.event.repository.name }}-${{ github.event.client_payload.pr_number }}
concurrency: ${{ github.event.repository.name }}-${{ github.ref }}

jobs:
comment-on-pr:
Expand Down
71 changes: 38 additions & 33 deletions .github/workflows/macosx-clang-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ on:
- develop
- 1.*
pull_request:
types: [opened, reopened, synchronize, converted_to_draft, ready_for_review]

jobs:
concurrency:
group: ${{ github.event.repository.name }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:

runs-on: macos-10.15

if: github.event.pull_request.draft == false

strategy:
fail-fast: false

Expand All @@ -28,34 +33,34 @@ jobs:
CMAKE_BUILD_PARALLEL_LEVEL: 4

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}-${{ hashFiles('**/*') }}
restore-keys: |
${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}
- uses: actions/cache@v2
id: mpich-cache
with:
path: ~/.mpich
key: ${{ runner.os }}-macosx-clang-8-mpich-${{ hashFiles('**/.github/workflows/macosx-clang-mpich.yml', '**/ci/deps/mpich.sh') }}
- name: Install Dependencies
shell: bash
run: brew bundle --file=ci/Brewfile
- name: Modify hosts file
shell: bash
run: echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
- name: Build mpich
if: steps.mpich-cache.outputs.cache-hit != 'true'
shell: bash
run: |
ci/deps/mpich.sh 3.3.2 -j4 $(grealpath ~/.mpich)
- name: Build
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/build_cpp.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/test_cpp.sh $(pwd) $(pwd)/build
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}-${{ hashFiles('**/*') }}
restore-keys: |
${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}
- uses: actions/cache@v2
id: mpich-cache
with:
path: ~/.mpich
key: ${{ runner.os }}-macosx-clang-8-mpich-${{ hashFiles('**/.github/workflows/macosx-clang-mpich.yml', '**/ci/deps/mpich.sh') }}
- name: Install Dependencies
shell: bash
run: brew bundle --file=ci/Brewfile
- name: Modify hosts file
shell: bash
run: echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
- name: Build mpich
if: steps.mpich-cache.outputs.cache-hit != 'true'
shell: bash
run: |
ci/deps/mpich.sh 3.3.2 -j4 $(grealpath ~/.mpich)
- name: Build
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/build_cpp.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/test_cpp.sh $(pwd) $(pwd)/build
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-12-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-13-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-14-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-3.9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-5.0-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-clang-alpine-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-10-ubuntu-openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-12-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: true
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-5-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-6-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-7-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-gcc-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-intel-oneapi-icpc-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-intel-oneapi-icpx-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-nvidia-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
6 changes: 4 additions & 2 deletions ci/azure/azure-nvidia-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ trigger:
- 1.0.0*

pr:
drafts: false
autoCancel: true
branches:
include:
- '*'
include:
- '*'


resources:
Expand Down
Loading