Skip to content

Commit 0331e67

Browse files
authored
ci: update CI.yml
1 parent e3a3989 commit 0331e67

File tree

1 file changed

+25
-35
lines changed

1 file changed

+25
-35
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

0 commit comments

Comments
 (0)