Skip to content

Commit 28a81fe

Browse files
Merge pull request #5 from JuliaComputing/vkb/ci-fixes
CI & docs fixes
2 parents e3a3989 + 01e54c2 commit 28a81fe

File tree

7 files changed

+66
-44
lines changed

7 files changed

+66
-44
lines changed

.github/workflows/CI.yml

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,50 @@
11
name: CI
2+
23
on:
34
push:
45
branches:
5-
- master
6+
- main
67
tags: '*'
78
pull_request:
8-
concurrency:
9-
# Skip intermediate builds: always.
10-
# Cancel intermediate builds: only if it is a pull request build.
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
9+
10+
env:
11+
JULIA_PKG_SERVER: https://internal.juliahub.com/
12+
1313
jobs:
1414
test:
1515
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16-
runs-on: ${{ matrix.os }}
16+
runs-on: self-hosted
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.0'
22-
- '1.8'
23-
- 'nightly'
21+
- '1'
2422
os:
25-
- ubuntu-latest
23+
- self-hosted
2624
arch:
2725
- x64
2826
steps:
27+
- name: Set debug env
28+
run: export JULIA_DEBUG="loading"
2929
- uses: actions/checkout@v2
3030
- uses: julia-actions/setup-julia@v1
3131
with:
3232
version: ${{ matrix.version }}
3333
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/cache@v1
35-
- uses: julia-actions/julia-buildpkg@v1
36-
- uses: julia-actions/julia-runtest@v1
37-
- uses: julia-actions/julia-processcoverage@v1
38-
- uses: codecov/codecov-action@v2
34+
- uses: actions/cache@v1
35+
env:
36+
cache-name: cache-artifacts
3937
with:
40-
files: lcov.info
41-
docs:
42-
name: Documentation
43-
runs-on: ubuntu-latest
44-
permissions:
45-
contents: write
46-
steps:
47-
- uses: actions/checkout@v2
48-
- uses: julia-actions/setup-julia@v1
38+
path: ~/.julia/artifacts
39+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
40+
restore-keys: |
41+
${{ runner.os }}-test-${{ env.cache-name }}-
42+
${{ runner.os }}-test-
43+
${{ runner.os }}-
44+
- uses: PumasAI/add-private-registry@main
4945
with:
50-
version: '1'
46+
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
47+
private_registry_name: JuliaSimRegistry
48+
private_registry_uuid: 309a7822-a73e-4490-9504-7d1983f27685
5149
- uses: julia-actions/julia-buildpkg@v1
52-
- uses: julia-actions/julia-docdeploy@v1
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
- run: |
56-
julia --project=docs -e '
57-
using Documenter: DocMeta, doctest
58-
using Multibody
59-
DocMeta.setdocmeta!(Multibody, :DocTestSetup, :(using Multibody); recursive=true)
60-
doctest(Multibody)'
50+
- uses: julia-actions/julia-runtest@v1

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
8-
runs-on: ubuntu-latest
8+
runs-on: self-hosted
99
steps:
1010
- name: Pkg.add("CompatHelper")
1111
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'

.github/workflows/Documentation.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
pull_request:
10+
workflow_dispatch:
11+
12+
env:
13+
JULIA_PKG_SERVER: https://internal.juliahub.com/
14+
15+
jobs:
16+
build:
17+
runs-on: self-hosted
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: julia-actions/setup-julia@latest
21+
with:
22+
version: '1'
23+
- uses: PumasAI/add-private-registry@main
24+
with:
25+
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
26+
private_registry_name: JuliaSimRegistry
27+
private_registry_uuid: 309a7822-a73e-4490-9504-7d1983f27685
28+
- name: Install dependencies
29+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.add(name="Documenter", rev="master"); Pkg.instantiate()'
30+
- name: Build and deploy
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
33+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
34+
run: julia --project=docs/ docs/make.jl

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ${{ matrix.os }}
13+
runs-on: self-hosted
1414
strategy:
1515
matrix:
1616
julia-version: [1]

.github/workflows/Invalidations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# Only run on PRs to the default branch.
1515
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
1616
if: github.base_ref == github.event.repository.default_branch
17-
runs-on: ubuntu-latest
17+
runs-on: self-hosted
1818
steps:
1919
- uses: julia-actions/setup-julia@v1
2020
with:
@@ -30,7 +30,7 @@ jobs:
3030
- uses: julia-actions/julia-buildpkg@v1
3131
- uses: julia-actions/julia-invalidations@v1
3232
id: invs_default
33-
33+
3434
- name: Report invalidation counts
3535
run: |
3636
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
TagBot:
99
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10-
runs-on: ubuntu-latest
10+
runs-on: self-hosted
1111
steps:
1212
- uses: JuliaRegistries/TagBot@v1
1313
with:

docs/make.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ makedocs(;
99
repo = "https://github.com/YingboMa/Multibody.jl/blob/{commit}{path}#{line}",
1010
sitename = "Multibody.jl",
1111
format = Documenter.HTML(;
12-
prettyurls = get(ENV, "CI", "false") == "true",
13-
canonical = "https://YingboMa.github.io/Multibody.jl",
14-
edit_link = "master",
15-
assets = String[]),
12+
prettyurls = get(ENV, "CI", nothing) == "true",
13+
edit_link = nothing),
1614
pages = [
1715
"Home" => "index.md",
1816
])

0 commit comments

Comments
 (0)