Skip to content

Commit 4371227

Browse files
committed
Update CI
1 parent 686beae commit 4371227

File tree

4 files changed

+71
-12
lines changed

4 files changed

+71
-12
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,23 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v2
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
1023
- name: "Add the General registry via Git"
1124
run: |
1225
import Pkg
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time
8+
concurrency:
9+
group: doc-preview-cleanup
10+
cancel-in-progress: false
11+
12+
jobs:
13+
doc-preview-cleanup:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout gh-pages branch
19+
uses: actions/checkout@v4
20+
with:
21+
ref: gh-pages
22+
- name: Delete preview and history + push changes
23+
run: |
24+
if [ -d "${preview_dir}" ]; then
25+
git config user.name "Documenter.jl"
26+
git config user.email "[email protected]"
27+
git rm -rf "${preview_dir}"
28+
git commit -m "delete preview"
29+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
30+
git push --force origin gh-pages-new:gh-pages
31+
fi
32+
env:
33+
preview_dir: previews/PR${{ github.event.number }}

.github/workflows/TagBot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
tags: '*'
1010
pull_request:
1111
release:
12+
workflow_dispatch:
1213

1314
concurrency:
1415
# Skip intermediate builds: always.
@@ -27,7 +28,7 @@ jobs:
2728
version:
2829
- '1.6'
2930
- '1'
30-
- 'nightly'
31+
- 'pre'
3132
os:
3233
- ubuntu-latest
3334
arch:
@@ -38,43 +39,39 @@ jobs:
3839
arch: x86
3940
- version: 1
4041
os: macOS-latest
41-
arch: x64
42+
arch: arm64
4243
- version: 1
4344
os: windows-latest
4445
arch: x64
4546
steps:
4647
- uses: actions/checkout@v4
47-
- uses: julia-actions/setup-julia@v1
48+
- uses: julia-actions/setup-julia@v2
4849
with:
4950
version: ${{ matrix.version }}
5051
arch: ${{ matrix.arch }}
51-
- uses: julia-actions/cache@v1
52+
- uses: julia-actions/cache@v2
5253
- uses: julia-actions/julia-buildpkg@v1
53-
env:
54-
PYTHON: 'Conda'
5554
- uses: julia-actions/julia-runtest@v1
5655
with:
5756
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' }}
5857
- uses: julia-actions/julia-processcoverage@v1
5958
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
60-
- uses: codecov/codecov-action@v4
59+
- uses: codecov/codecov-action@v5
6160
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
6261
with:
6362
fail_ci_if_error: true
6463
token: ${{ secrets.CODECOV_TOKEN }}
65-
file: lcov.info
64+
files: lcov.info
6665
docs:
6766
name: Documentation
6867
runs-on: ubuntu-latest
6968
steps:
7069
- uses: actions/checkout@v4
71-
- uses: julia-actions/setup-julia@v1
70+
- uses: julia-actions/setup-julia@v2
7271
with:
7372
version: '1'
74-
- uses: julia-actions/cache@v1
73+
- uses: julia-actions/cache@v2
7574
- uses: julia-actions/julia-buildpkg@v1
76-
env:
77-
PYTHON: 'Conda'
7875
- uses: julia-actions/julia-docdeploy@v1
7976
env:
8077
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)