Skip to content

Commit

Permalink
Run different CI jobs only when relevant files are touched (#266)
Browse files Browse the repository at this point in the history
* Run differnt CI jobs only when relevant files are touched

* [CI] Add timeouts

---------

Co-authored-by: Matt Graham <[email protected]>
  • Loading branch information
giordano and matt-graham authored Mar 13, 2024
1 parent b157f0c commit 761d91d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Run benchmarks

on:
pull_request:
paths:
- '.github/workflows/benchmark.yml'
- 'benchmark/**'
- 'src/**'
# Benchmarks include this file
- 'test/models/llw2d.jl'
workflow_dispatch:

concurrency:
Expand All @@ -12,6 +18,7 @@ concurrency:

jobs:
benchmark:
timeout-minutes: 90
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@ name: CI

on:
push:
paths:
- '.github/workflows/ci.yml'
- 'Project.toml'
- 'src/**'
- 'test/**'
branches: [main]
tags: ["*"]
pull_request:
paths:
- '.github/workflows/ci.yml'
- 'Project.toml'
- 'src/**'
- 'test/**'

concurrency:
# Skip intermediate builds: always.
Expand All @@ -14,6 +24,7 @@ concurrency:

jobs:
test:
timeout-minutes: 60
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.threads }} threads
env:
JULIA_NUM_THREADS: ${{ matrix.threads }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@ name: Documentation

on:
push:
paths:
- 'Project.toml'
- 'docs/**'
- 'src/**'
branches:
- main
tags: '*'
pull_request:
paths:
- 'Project.toml'
- 'docs/**'
- 'src/**'

jobs:
build:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

2 comments on commit 761d91d

@matt-graham
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/102807

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.1.0 -m "<description of version>" 761d91d01cfc338444fb13eb0a0b53c4b9b6d133
git push origin v1.1.0

Please sign in to comment.