Skip to content

Commit 3bf15f5

Browse files
committed
[CI] Install Dependabot and update some workflows
1 parent 70a2940 commit 3bf15f5

File tree

4 files changed

+30
-17
lines changed

4 files changed

+30
-17
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- '1.11'
2626
- 'nightly'
2727
os:
28-
- ubuntu-20.04
28+
- ubuntu-24.04
2929
- macOS-latest
3030
- windows-latest
3131
arch:
@@ -38,17 +38,17 @@ jobs:
3838
arch: x64
3939
libEnzyme: local
4040
include:
41-
- os: ubuntu-20.04
41+
- os: ubuntu-24.04
4242
arch: x86
4343
libEnzyme: packaged
4444
version: '1.10'
4545
assertions: false
46-
- os: ubuntu-20.04
46+
- os: ubuntu-24.04
4747
arch: x64
4848
libEnzyme: packaged
4949
version: '1.10'
5050
assertions: true
51-
- os: ubuntu-20.04
51+
- os: ubuntu-24.04
5252
arch: x64
5353
libEnzyme: packaged
5454
version: '1.11'

.github/workflows/benchmark_pr.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ on:
66
permissions:
77
pull-requests: write
88

9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
915
jobs:
1016
generate_plots:
1117
runs-on: ubuntu-latest
1218

1319
steps:
14-
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@v1
20+
- uses: actions/checkout@v4
21+
- uses: julia-actions/setup-julia@v2
1622
with:
1723
version: "1"
18-
- uses: julia-actions/cache@v1
24+
- uses: julia-actions/cache@v2
1925
- name: Extract Package Name from Project.toml
2026
id: extract-package-name
2127
run: |
@@ -26,8 +32,8 @@ jobs:
2632
JULIA_NUM_THREADS: 2
2733
run: |
2834
# Lightweight build step, as sometimes the runner runs out of memory:
29-
julia -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0; import Pkg; Pkg.add("AirspeedVelocity")'
30-
julia -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0; import Pkg; Pkg.build("AirspeedVelocity")'
35+
julia --color=yes -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0; import Pkg; Pkg.add("AirspeedVelocity")'
36+
julia --color=yes -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0; import Pkg; Pkg.build("AirspeedVelocity")'
3137
- name: Add ~/.julia/bin to PATH
3238
run: |
3339
echo "$HOME/.julia/bin" >> $GITHUB_PATH
@@ -60,15 +66,15 @@ jobs:
6066
echo 'Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).' >> body.md
6167
6268
- name: Find Comment
63-
uses: peter-evans/find-comment@v2
69+
uses: peter-evans/find-comment@v3
6470
id: fcbenchmark
6571
with:
6672
issue-number: ${{ github.event.pull_request.number }}
6773
comment-author: 'github-actions[bot]'
6874
body-includes: Benchmark Results
6975

7076
- name: Comment on PR
71-
uses: peter-evans/create-or-update-comment@v3
77+
uses: peter-evans/create-or-update-comment@v4
7278
with:
7379
comment-id: ${{ steps.fcbenchmark.outputs.comment-id }}
7480
issue-number: ${{ github.event.pull_request.number }}

.github/workflows/scripts_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ on:
99

1010
jobs:
1111
docs:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

16-
- uses: julia-actions/setup-julia@v1
16+
- uses: julia-actions/setup-julia@v2
1717
with:
1818
version: '1'
19-
- uses: julia-actions/cache@v1
19+
- uses: julia-actions/cache@v2
2020
- run: |
21-
julia --project=docs -e '
21+
julia --color=yes --project=docs -e '
2222
using Pkg
2323
Pkg.develop([PackageSpec(path="lib/EnzymeCore"), PackageSpec(path=pwd()), PackageSpec(path="lib/EnzymeTestUtils")])
2424
Pkg.instantiate()'
2525
env:
2626
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
2727
- run: |
28-
julia --project=docs -e '
28+
julia --color=yes --project=docs -e '
2929
using Documenter: DocMeta, doctest
3030
using Enzyme
3131
DocMeta.setdocmeta!(Enzyme, :DocTestSetup, :(using Enzyme); recursive=true)

0 commit comments

Comments
 (0)