Skip to content

Commit

Permalink
Limit scheduled jobs to only run in iree-org. (#60)
Browse files Browse the repository at this point in the history
These jobs are still runnable in forks via `pull_request` and
`workflow_dispatch` triggers, but this still skip the `schedule`
triggers in forks that do not have the workflows or scheduled jobs
disabled.

Most jobs are currently fast and use free resources, but the new
sharktank model tests do use git LFS quota, so we want to limit wasteful
usage there to avoid issues like
#56.
  • Loading branch information
ScottTodd authored Dec 16, 2024
1 parent b81b4f0 commit 55e5caf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test_linalg_ops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ concurrency:

jobs:
test-linalg-ops:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
BUILD_DIR: build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_onnx_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ concurrency:

jobs:
test-onnx-models:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
VENV_DIR: ${{ github.workspace }}/.venv
Expand Down Expand Up @@ -67,4 +68,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: onnx_models_test_report_cpu_llvm_task.html
path: ${{ env.HTML_REPORT_PATH }}
path: ${{ env.HTML_REPORT_PATH }}
1 change: 1 addition & 0 deletions .github/workflows/test_onnx_ops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ concurrency:

jobs:
test-onnx-ops:
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/test_sharktank_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ concurrency:

jobs:
test-sharktank-models:
if: ${{ github.repository_owner == 'iree-org' || github.event_name != 'schedule' }}
runs-on: ubuntu-24.04
env:
VENV_DIR: ${{ github.workspace }}/.venv
Expand Down

0 comments on commit 55e5caf

Please sign in to comment.