Skip to content

Commit f4124d5

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

File tree

4 files changed

+37
-51
lines changed

4 files changed

+37
-51
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: 11 additions & 38 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'
@@ -72,16 +72,7 @@ jobs:
7272
sed -i.bak 's/exit 2/exit 0/g' julia/deps/tools/jlchecksum
7373
make -C julia -j $(nproc) FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1 JULIA_PRECOMPILE=0
7474
echo $PWD/julia/usr/bin >> $GITHUB_PATH
75-
- uses: actions/cache@v2
76-
env:
77-
cache-name: cache-artifacts
78-
with:
79-
path: ~/.julia/artifacts
80-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
81-
restore-keys: |
82-
${{ runner.os }}-test-${{ env.cache-name }}-
83-
${{ runner.os }}-test-
84-
${{ runner.os }}-
75+
- uses: julia-actions/cache@v2
8576
- name: add EnzymeCore
8677
shell: julia --color=yes --project=. {0}
8778
run: |
@@ -120,10 +111,10 @@ jobs:
120111
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
121112
- uses: julia-actions/julia-processcoverage@v1
122113
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
123-
- uses: codecov/codecov-action@v4
114+
- uses: codecov/codecov-action@v5
124115
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
125116
with:
126-
file: lcov.info
117+
files: lcov.info
127118
token: ${{ secrets.CODECOV_TOKEN }}
128119
fail_ci_if_error: false # or true if you want CI to fail when Codecov fails
129120
enzymetestutils:
@@ -150,16 +141,7 @@ jobs:
150141
with:
151142
version: ${{ matrix.version }}
152143
arch: ${{ matrix.arch }}
153-
- uses: actions/cache@v2
154-
env:
155-
cache-name: cache-artifacts
156-
with:
157-
path: ~/.julia/artifacts
158-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
159-
restore-keys: |
160-
${{ runner.os }}-test-${{ env.cache-name }}-
161-
${{ runner.os }}-test-
162-
${{ runner.os }}-
144+
- uses: julia-actions/cache@v2
163145
- name: setup EnzymeTestUtils
164146
shell: julia --color=yes {0}
165147
id: setup_testutils
@@ -182,7 +164,7 @@ jobs:
182164
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
183165
with:
184166
directories: lib/EnzymeTestUtils/src
185-
- uses: codecov/codecov-action@v4
167+
- uses: codecov/codecov-action@v5
186168
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
187169
with:
188170
files: lcov.info
@@ -212,16 +194,7 @@ jobs:
212194
with:
213195
version: ${{ matrix.version }}
214196
arch: ${{ matrix.arch }}
215-
- uses: actions/cache@v2
216-
env:
217-
cache-name: cache-artifacts
218-
with:
219-
path: ~/.julia/artifacts
220-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
221-
restore-keys: |
222-
${{ runner.os }}-test-${{ env.cache-name }}-
223-
${{ runner.os }}-test-
224-
${{ runner.os }}-
197+
- uses: julia-actions/cache@v2
225198
- name: setup EnzymeCore
226199
shell: julia --color=yes {0}
227200
id: setup_testutils
@@ -244,7 +217,7 @@ jobs:
244217
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
245218
with:
246219
directories: lib/EnzymeCore/src
247-
- uses: codecov/codecov-action@v4
220+
- uses: codecov/codecov-action@v5
248221
if: matrix.version != 'nightly' || steps.run_tests.outcome == 'success'
249222
with:
250223
files: lcov.info

.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)