Run scheduled CI workflows only in the main repo (#30729)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
parent
262c3f07bf
commit
30f2394782
3 changed files with 16 additions and 1 deletions
11
.github/workflows/bootstrap.yml
vendored
11
.github/workflows/bootstrap.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
fedora-clingo-sources:
|
fedora-clingo-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "fedora:latest"
|
container: "fedora:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -57,6 +58,7 @@ jobs:
|
||||||
ubuntu-clingo-sources:
|
ubuntu-clingo-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "ubuntu:latest"
|
container: "ubuntu:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
@ -93,6 +95,7 @@ jobs:
|
||||||
ubuntu-clingo-binaries-and-patchelf:
|
ubuntu-clingo-binaries-and-patchelf:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "ubuntu:latest"
|
container: "ubuntu:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
@ -126,6 +129,7 @@ jobs:
|
||||||
opensuse-clingo-sources:
|
opensuse-clingo-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "opensuse/leap:latest"
|
container: "opensuse/leap:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -154,6 +158,7 @@ jobs:
|
||||||
|
|
||||||
macos-clingo-sources:
|
macos-clingo-sources:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -174,6 +179,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
|
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -195,6 +201,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
|
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||||
|
@ -216,6 +223,7 @@ jobs:
|
||||||
ubuntu-gnupg-binaries:
|
ubuntu-gnupg-binaries:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "ubuntu:latest"
|
container: "ubuntu:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
@ -250,6 +258,7 @@ jobs:
|
||||||
ubuntu-gnupg-sources:
|
ubuntu-gnupg-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "ubuntu:latest"
|
container: "ubuntu:latest"
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
@ -285,6 +294,7 @@ jobs:
|
||||||
|
|
||||||
macos-gnupg-binaries:
|
macos-gnupg-binaries:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -302,6 +312,7 @@ jobs:
|
||||||
|
|
||||||
macos-gnupg-sources:
|
macos-gnupg-sources:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
3
.github/workflows/build-containers.yml
vendored
3
.github/workflows/build-containers.yml
vendored
|
@ -43,6 +43,7 @@ jobs:
|
||||||
[ubuntu-focal, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:20.04'],
|
[ubuntu-focal, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:20.04'],
|
||||||
[ubuntu-jammy, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:22.04']]
|
[ubuntu-jammy, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:22.04']]
|
||||||
name: Build ${{ matrix.dockerfile[0] }}
|
name: Build ${{ matrix.dockerfile[0] }}
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
||||||
|
@ -94,7 +95,7 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # @v1
|
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # @v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|
3
.github/workflows/macos_python.yml
vendored
3
.github/workflows/macos_python.yml
vendored
|
@ -22,6 +22,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
install_gcc:
|
install_gcc:
|
||||||
name: gcc with clang
|
name: gcc with clang
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
||||||
|
@ -36,6 +37,7 @@ jobs:
|
||||||
|
|
||||||
install_jupyter_clang:
|
install_jupyter_clang:
|
||||||
name: jupyter
|
name: jupyter
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
timeout-minutes: 700
|
timeout-minutes: 700
|
||||||
steps:
|
steps:
|
||||||
|
@ -50,6 +52,7 @@ jobs:
|
||||||
|
|
||||||
install_scipy_clang:
|
install_scipy_clang:
|
||||||
name: scipy, mpl, pd
|
name: scipy, mpl, pd
|
||||||
|
if: github.repository == 'spack/spack'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
|
||||||
|
|
Loading…
Reference in a new issue