Skip to content

Commit 492457c

Browse files
committed
Update CI with changes from PkgTemplates.jl
1 parent c8c27b0 commit 492457c

File tree

5 files changed

+41
-9
lines changed

5 files changed

+41
-9
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ on:
1111
paths-ignore:
1212
- 'README.md'
1313
- '.github/workflows/**'
14+
concurrency:
15+
# Skip intermediate builds: always.
16+
# Cancel intermediate builds: only if it is a pull request build.
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
19+
1420
jobs:
1521
test:
1622
if: "!contains(github.event.head_commit.message, 'skip ci')"
@@ -55,8 +61,11 @@ jobs:
5561
runs-on: ubuntu-latest
5662
steps:
5763
- uses: actions/checkout@v2
58-
- uses: julia-actions/julia-buildpkg@latest
59-
- uses: julia-actions/julia-docdeploy@latest
64+
- uses: julia-actions/setup-julia@v1
65+
with:
66+
version: '1'
67+
- uses: julia-actions/julia-buildpkg@v1
68+
- uses: julia-actions/julia-docdeploy@v1
6069
env:
6170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6271
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/CompatHelper.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: 0 0 * * *
4+
- cron: 19 06 * * *
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
10+
- name: "Install CompatHelper"
11+
run: |
12+
import Pkg
13+
name = "CompatHelper"
14+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
15+
version = "2"
16+
Pkg.add(; name, uuid, version)
17+
shell: julia --color=yes {0}
18+
- name: "Run CompatHelper"
19+
run: |
20+
import CompatHelper
21+
CompatHelper.main()
22+
shell: julia --color=yes {0}
1323
env:
1424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1525
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
26+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/Register.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Register Action
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: Version to register or component to bump
7+
required: true
8+
jobs:
9+
register:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: julia-actions/RegisterAction@latest
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
55
UnixMmap = "674b2976-56af-439b-a2b1-837be4a3d087"
66

77
[compat]
8-
Documenter = "0.25.2"
8+
Documenter = "0.25.2, 0.26, 0.27"

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ makedocs(
2626
"Public" => "lib/public.md",
2727
]
2828
],
29-
repo = "https://github.com/jmert/UnixMmap.jl/blob/{commit}{path}#L{line}",
3029
)
3130

3231
deploydocs(

0 commit comments

Comments
 (0)