Skip to content

Commit

Permalink
Limit scheduling jobs to iree-org (iree-org#19224)
Browse files Browse the repository at this point in the history
Limits the execution of cron-scheduled jobs to in iree-org, while
allowing to trigger via `workflow_dispatch` also from forks.
  • Loading branch information
marbre authored Dec 12, 2024
1 parent 10e5bbb commit d68cd28
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_linux_arm64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ concurrency:

jobs:
linux_arm64_clang:
if: ${{ github.repository_owner == 'iree-org' }}
# See https://gitlab.arm.com/tooling/gha-runner-docs
runs-on: ah-ubuntu_22_04-c7g_4x-50
container:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_linux_x64_clang_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
# This may run out of memory / disk space on standard GitHub-hosted runners,
# so run on self-hosted CPU build runners instead.
linux_x64_clang_debug:
runs-on: azure-linux-scale
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ${{ github.repository_owner == 'iree-org' && 'azure-linux-scale' || 'ubuntu-24.04' }}
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
defaults:
run:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/ci_linux_x64_clang_tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml

linux_x64_clang_tsan:
needs: setup
runs-on: azure-linux-scale
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ${{ github.repository_owner == 'iree-org' && 'azure-linux-scale' || 'ubuntu-24.04' }}
container:
image: ghcr.io/iree-org/cpubuilder_ubuntu_jammy@sha256:78a558b999b230f7e1da376639e14b44f095f30f1777d6a272ba48c0bbdd4ccb
# TSan in particular needs some settings that this option includes:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_windows_x64_msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ concurrency:

jobs:
windows_x64_msvc:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: azure-windows-scale
env:
BASE_BUILD_DIR_POWERSHELL: C:\mnt\azure\b
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ concurrency:

jobs:
colab:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
steps:
- name: "Checking out repository"
Expand All @@ -40,6 +41,7 @@ jobs:
run: ./samples/colab/test_notebooks.py

samples:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
CC: clang
Expand All @@ -59,6 +61,7 @@ jobs:
run: ./build_tools/testing/test_samples.sh

web:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
VENV_DIR: ${{ github.workspace }}/.venv
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/schedule_candidate_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

jobs:
tag_release:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
name: "Tag candidate release"
runs-on: ubuntu-24.04
steps:
Expand Down

0 comments on commit d68cd28

Please sign in to comment.