|
1 | 1 | name: CI
|
| 2 | + |
2 | 3 | on:
|
3 | 4 | push:
|
4 | 5 | branches:
|
5 |
| - - master |
| 6 | + - main |
6 | 7 | tags: '*'
|
7 | 8 | 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 | + |
13 | 13 | jobs:
|
14 | 14 | test:
|
15 | 15 | name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
|
16 |
| - runs-on: ${{ matrix.os }} |
| 16 | + runs-on: self-hosted |
17 | 17 | strategy:
|
18 | 18 | fail-fast: false
|
19 | 19 | matrix:
|
20 | 20 | version:
|
21 |
| - - '1.0' |
22 |
| - - '1.8' |
23 |
| - - 'nightly' |
| 21 | + - '1' |
24 | 22 | os:
|
25 |
| - - ubuntu-latest |
| 23 | + - self-hosted |
26 | 24 | arch:
|
27 | 25 | - x64
|
28 | 26 | steps:
|
| 27 | + - name: Set debug env |
| 28 | + run: export JULIA_DEBUG="loading" |
29 | 29 | - uses: actions/checkout@v2
|
30 | 30 | - uses: julia-actions/setup-julia@v1
|
31 | 31 | with:
|
32 | 32 | version: ${{ matrix.version }}
|
33 | 33 | 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 |
39 | 37 | 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 |
49 | 45 | 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 |
51 | 49 | - 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